Exemplo n.º 1
0
void Worker::run()
{
    QTimer timer;
    connect (&timer, SIGNAL(timeout()), SLOT(slotNextValue()));
    timer.start(1000); 
    exec();  
}
Exemplo n.º 2
0
/********************************************************************

  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();  
}