#include #include "workerthread.h" #include "debugworker.h" int main(int argc, char** argv) { QCoreApplication a(argc, argv); qDebug() << "Main thread id:" << QThread::currentThreadId(); WorkerThread* thread1 = new WorkerThread(); thread1->startThread(new DebugWorker()); return a.exec(); }