当前位置:网站首页>QT common Concepts-1
QT common Concepts-1
2022-07-07 02:41:00 【Handsome drop point C】
Catalog
2. listview and listwiget relevant :
1. Time and date :
1.1 data type
- QTime: Time data type , Time , Such as :14:23:13.
- QDate: Date data type , Indicates the date , Such as :2020-4-5.
- QDateTime: Date time data type , Represents the date and time , Such as :2020-03-23 08:12:43.
therefore Time It's time ;Date It's the date ;DateTime It's time + date
1.2 Related components
- QTimeEdit: Edit and display time components .
- QDateEdit: Components for editing and displaying dates .
- QDateTimeEdit: Edit and display date and time components .
- QCalendarWidget: Select the component of the date in the form of calendar .
QDateEdit and QTimeEdit from QDateTimeEdit inherited , Realize the specific display function of date or time . actually ,QDateEdit and QTimeEdit All display functions can be through QDateTimeEdit Realization , Just set the properties .
QDateTimeEdit The main properties of class are as follows :
datetime: Date time .
date: date , Set up datetime It will change automatically when date, Again , Set up date when , It will also change automatically datetime The date in the .
time: Time , Set up datetime It will change automatically when time, Again , Set up time when , It will also change automatically datetime Time in .
maximumDateTime、 minimumDateTime: Maximum 、 Minimum date time .
maximumDate、minimumDate: Maximum 、 Minimum date .
maximumTime、minimumTime: Maximum 、 Minimum time .
currentSection: The time and date data segment where the current input cursor is located , Is enumeration type QDateTimeEdit::Section.QDateTimeEdit The display date and time data is divided into multiple segments , Click the up and down buttons on the right side of the edit box to modify the value of the current segment . If the input cursor is YearSection paragraph , Just modify “ year ” Value .
currentSectionIndex: The segment where the input cursor is located, represented by a sequence number .
calendarPopup: Allow a calendar selection box to pop up . When the value is true when , The input button on the right becomes the same as QComboBox Similar drop-down buttons , When you click the button, a calendar selection box appears , Used to select a date on the calendar . about QTimeEdit, This property is not valid .
displayFormat: Display format , Display format of date and time data , For example, set to “yyyy-MM-dd HH:mm:ss”, A date and time data is displayed as “2020-11-02 08:23:46”
2. listview and listwiget relevant :
3. Packing related :
- setup.py
- If I develop a program on my computer , Need to use python Of redis、mysql Modules and their own writing redis_run.py modular . How can I publish the system on the server , How to implement dependent modules and self written modules redis_run.py Pack together , Realize one click installation ? At the same time, I will write it myself redis_run.py Module to exe The file format is installed to python Global execution path of C:\Python27\Scripts Next ? In this application scenario ,pip Tools seem useless , Only use python Build tools for setup.py 了 , Using this build tool can realize the above application scenario requirements , Just in setup.py The file indicates the dependent library and version , Then use it on the target machine python setup.py install install .
4. Common function :
QApplication:
- QApplication As a whole GUI The entry point of the application , It must be to complete various initializations . The entry function .
边栏推荐
- This week's hot open source project!
- Code line breaking problem of untiy text box
- Here comes a white paper to uncover the technology behind Clickhouse, a node with 10000 bytes!
- A new path for enterprise mid Platform Construction -- low code platform
- 安德鲁斯—-多媒体编程
- 写作系列之contribution
- Douban average 9 x. Five God books in the distributed field!
- Planning and design of double click hot standby layer 2 network based on ENSP firewall
- 压缩 js 代码就用 terser
- Processus général de requête pour PostgreSQL
猜你喜欢

Pioneer of Web3: virtual human
![[server data recovery] data recovery case of a Dell server crash caused by raid damage](/img/29/e07bf1f8eae9be19f6eed69be5642d.jpg)
[server data recovery] data recovery case of a Dell server crash caused by raid damage

C#/VB. Net to delete watermarks in word documents

wireshark安装
![leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]](/img/62/d4d5428f69fc221063a4f607750995.png)
leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]

1--新唐nuc980 NUC980移植 UBOOT,从外部mx25l启动

Remember the problem analysis of oom caused by a Jap query

慧通编程入门课程 - 2A闯关

Electrical engineering and automation

普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
随机推荐
S120驱动器基本调试步骤总结
Here comes a white paper to uncover the technology behind Clickhouse, a node with 10000 bytes!
How to build a 32core raspberry pie cluster from 0 to 1
Electrical engineering and automation
dotConnect for DB2数据提供者
Planning and design of double click hot standby layer 2 network based on ENSP firewall
STM32项目 -- 选题分享(部分)
Go swagger use
Untiy文本框的代码换行问题
CDB PDB user rights management
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
[leetcode]Search for a Range
Niuke programming problem -- double pointer of 101 must be brushed
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
Lombok同时使⽤@Data和@Builder 的坑
【Node学习笔记】chokidar模块实现文件监听
Unity webgl adaptive web page size
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
Common fitting models and application methods of PCL
Summary of basic debugging steps of S120 driver