16,215
社区成员
发帖
与我相关
我的任务
分享
F1timer=new QTimer;
F1timer->stop();
connect(F1timer,SIGNAL(timeout()),this,SLOT(F1timeout()));
F1timer->start(5*1000);
void QWidget::F1timeout()
{
F1->setValue(0);
//F1timer->stop();
// delete F1timer;
}
int count =0;
void QWidget::F1timeout()
{
count++;
if(count==4)
//处理点什么
F1->setValue(0);
}