void Worker::run() { QTimer timer; connect (&timer, SIGNAL(timeout()), SLOT(slotNextValue())); timer.start(1000); exec(); }
/******************************************************************** Declaration: The RUN function for thread. Start after method start called. Call: Input: Returns: none 30.05.2008 Initial coding / YS *********************************************************************/ void NotifyThread::run() { qDebug("NotifyThread::run() - start"); QTimer timer; connect (&timer, SIGNAL(timeout()), SLOT(slotNextValue())); timer.start(100); exec(); }