qt-10-事件分发器
请看代码:在构造函数中添加:timerid1 = startTimer(1000);接着重写:void TyWidget::timerEvent(QTimerEvent *event){qDebug()<timerId();if(event->timerId() == timerid1){ static int num = 1; QString strtmp = ""; strtmp.sprintf("我尼玛%d&