计时器

   QTimer *timer;
timer->start ();
void PictureShow::stopStartPage()
{
if (timer->isActive())
{
timer->stop();
} else
{
timer->start();
}
}
 connect (timer, SIGNAL (timeout()), this, SLOT (nextPage()));

demo如下:

http://url.cn/28SNGJh

05-28 12:44