void WorkerThread::run() { // This schedules the doTheWork() function // to run just after our event loop starts up QTimer::singleShot(0, this, SLOT(doTheWork())); // This starts the event loop. Note that // exec() does not return until the // event loop is stopped. exec(); }
ResetWidget::ResetWidget ( ResetBusinessLogic *resetBusinessLogic, QGraphicsWidget *parent) : DcpWidget (parent), m_ResetBusinessLogic (resetBusinessLogic), m_currentPlan (None) { createContent(); connect (resetBusinessLogic, SIGNAL (gotAccess ()), this, SLOT (doTheWork ())); connect (resetBusinessLogic, SIGNAL (accessDenied ()), this, SLOT (operationCancelled ())); }
void NSGA_II::run() { //qDebug()<<"lol\n"; doTheWork(); }