ok, next try. Does this give same thread timer warning?

Qt Code:
  1. FlashWizard::FlashWizard(...)
  2. {
  3. ...
  4. worker = new Worker;
  5.  
  6. qDebug() << worker->thread();
  7.  
  8. workerThread = new QThread;
  9. worker->moveToThread(workerThread);
  10.  
  11. qDebug() << worker->thread();
  12. qDebug() << worker->m_workerTimer->thread();
  13.  
  14. //connect(workerThread, SIGNAL(started()), worker, SLOT(start()));
  15. connect(workerThread, SIGNAL(finished()), worker, SLOT(stop()));
  16. connect(worker, SIGNAL(finished()), workerThread, SLOT(quit()));
  17. connect(worker, SIGNAL(finished()), ui->programPage, SLOT(setDone()));
  18. connect(worker, SIGNAL(updateProgress(int)), this, SLOT(updateWritingProgressBar(int)));
  19.  
  20. workerThread->start();
  21. QMetaObject::invokeMethod(worker, "start");
  22. QMetaObject::invokeMethod(worker, "stop");
  23. }
To copy to clipboard, switch view to plain text mode