当前位置:网站首页>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 .
边栏推荐
- Gee upgrade can realize one piece of run tasks
- Web3的先锋兵:虚拟人
- [leetcode]Search for a Range
- Overall query process of PostgreSQL
- [paper reading | deep reading] graphsage:inductive representation learning on large graphs
- Leetcode:minimum_ depth_ of_ binary_ Tree solutions
- 【森城市】GIS数据漫谈(二)
- Number theory --- fast power, fast power inverse element
- Web3对法律的需求
- 差异与阵列和阵列结构和链表的区别
猜你喜欢

Summer Challenge database Xueba notes (Part 2)~
![[paper reading | deep reading] graphsage:inductive representation learning on large graphs](/img/fe/3d4ccfa79a9624ac4901feeea1e69f.png)
[paper reading | deep reading] graphsage:inductive representation learning on large graphs

Data connection mode in low code platform (Part 1)

导数、偏导数、方向导数

postgresql之整體查詢大致過程

1 -- Xintang nuc980 nuc980 porting uboot, starting from external mx25l

The boss is quarantined

数论 --- 快速幂、快速幂求逆元
![leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]](/img/0d/e07fe970167368040eb09b05c3682e.png)
leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]

The panel floating with the mouse in unity can adapt to the size of text content
随机推荐
Derivative, partial derivative, directional derivative
Leetcode:minimum_ depth_ of_ binary_ Tree solutions
所谓的消费互联网仅仅只是做行业信息的撮合和对接,并不改变产业本身
MATLB|具有储能的经济调度及机会约束和鲁棒优化
人脸识别应用解析
软件测试——Jmeter接口测试之常用断言
Number theory --- fast power, fast power inverse element
Apifox,你的API接口文档卷成这样了吗?
写作系列之contribution
Application analysis of face recognition
Lumion 11.0 software installation package download and installation tutorial
C语言练习题_1
服装企业部署MES管理系统的五个原因
B站6月榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
dotConnect for DB2数据提供者
What to do when encountering slow SQL? (next)
安全交付工程师
Work of safety inspection
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
[server data recovery] data recovery case of a Dell server crash caused by raid damage