当前位置:网站首页>QT——LCDNumber
QT——LCDNumber
2022-07-26 10:53:00 【vhcjgc】
LCDNumber控件使用

插入LCDNumber控件
修改对象名称
ui->lcdTime->setDigitCount(23);
//设置显示字节长度
ui->lcdTime->setSegmentStyle(QLCDNumber::Flat);
//设置显示风格
QDateTime realtime=QDateTime::fromString(year+"-"+month+"-"+day+"T"+hour+":"+min+":"+sec+":"+m_sec,"yyyy-MM-ddThh:mm:ss:zzz");
ui->lcdTime->display(realtime.toString("yyyy MM dd hh:mm:ss.zzz"));
//显示内容
设置颜色
运行结果
边栏推荐
- Bash shell learning notes (4)
- Summary of the seventh class of pengge C language
- C#笔记
- 104.二叉树的最大深度
- @The difference and use of jsonformat and @datetimeformat
- LIst和Dictionary实例应用(※)
- C#委托与匿名方法浅析
- @Notblank, @notnull, @notempty differences and uses
- 菜鸟看源码之ArrayDeque
- Sword finger offer (44): flip the word order sequence
猜你喜欢

LinkedList of source code

菜鸟看源码之LinkedBlockingQueue

LE Audio规范概述

Visual conversion of nmap vulnerability scanning results

Linkedblockingqueue of novice source code

349. Intersection of two arrays

RT thread learning notes (VI) -- start the elmfat file system based on SPI flash (Part 1)

Newbie sees the source code arraydeque

mother

Bash shell learning notes (V)
随机推荐
Kali view IP address
WIRESHARK基础教程以太帧的分析。
Fragment 懒加载
C#笔记
logging 高级使用
How the ThreadPoolExecutor performs tasks
SparseArray of the source code for novices
Logging learning final edition - configured different levels of log printing colors
面试知识点
There is an unhandled exception at 0x003b66c3 in MFC: 0xc000041d: unhandled exception encountered during user callback
pytest 用例执行顺序
Bash shell learning notes (III)
Capture ZABBIX performance monitoring chart with selenium
Many people don't know whether they are looking for Kanban software or Kanban software
Sword finger offer (8): jump the steps
nmap弱点扫描结果可视化转换
Bash shell学习笔记(三)
Pytest fixture decorator
3Dunity游戏项目实战——第一人称射击游戏
MFC picture control