标签:
计时器
1 QTimer *timer; 2 timer->start (2000); 3 void PictureShow::stopStartPage() 4 { 5 if (timer->isActive()) 6 { 7 timer->stop(); 8 } 9 10 else 11 { 12 timer->start(); 13 } 14 }
connect (timer, SIGNAL (timeout()), this, SLOT (nextPage()));
demo如下:
http://url.cn/28SNGJh
标签:
原文地址:http://www.cnblogs.com/billly/p/5883777.html