@Chris-Kawa said:
QThread docs
Oh!! Then I need to make a worker class and do something like:
thread = new QThread();
thread->start();
worker = new Worker;
worker->moveToThread(thread);
// this is the initialization of a QWizardPage in the QWizard
WizardPageClass1 *page1 = new WizardPageClass1 ;
page1->setWorker(worker);
And then where I have the lengthy operation, emit a signal (DoOperation for example) and in its constructor make a connect like connect(this, DoOperation(), worker, doWork()) if doWork() is where I have the lenghty operation with?