• 4228阅读
  • 3回复

如何实现每隔一定时间重复促发某一事件? [复制链接]

上一主题 下一主题
离线newdc
 

只看楼主 倒序阅读 楼主  发表于: 2009-02-12
如何实现每隔一定时间重复促发某一事件?
离线duanlin
只看该作者 1楼 发表于: 2009-02-12
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(updateCaption()));

::updateCatpion()
{
\\reset timer.
}
离线newdc

只看该作者 2楼 发表于: 2009-02-12
\\reset timer.
如何实现?
离线newdc

只看该作者 3楼 发表于: 2009-02-12
引用第1楼duanlin于2009-02-12 09:46发表的  :
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(updateCaption()));
::updateCatpion()
{
.......

谢了,实现了。呵呵
快速回复
限100 字节
 
上一个 下一个