首页| 论坛| 消息

标题:【提问】请问QT中如何使用计时器
作者:chenzyj
日期:2006-03-15 17:37
内容:

我在程序中需要定时读取外部数据,并将数据显示在QLABEL控件中,该如何实现


#1 [XChinux 03-15 17:47]
from Qt4 Reference Document:
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(update()));
timer->start(1000);
#2 [chenzyj 03-17 07:41]
再请问TIMER处理写在哪个事件中呢?谢谢

回复 发表
主题 版块