随笔 - 493  文章 - 0  评论 - 97  阅读 - 239万
04 2014 档案
Qt 定时器Timer使用
摘要:From:http://dragoon666.blog.163.com/blog/static/107009194201092602326598/1.新建Gui工程,在主界面上添加一个标签label,并设置其显示内容为“0000-00-00 00:00:00 星期日”。2.在mainwindow.h中添加槽函数声明。private slots:void timerUpDate();3.在mainwindow.cpp中添加代码。添加#include 的头文件包含,这样就包含了QtCore下的所有文件。构造函数里添加代码:QTimer *timer = new QTimer(this);//新建定 阅读全文
posted @ 2014-04-12 16:37 清清飞扬 阅读(42300) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示