What happens to QThread when application is being closed without proper wait() call?
问题 In the example below (inside Qt GUI application) a new thread is started (with an event loop in which I want some work to be done): void doWork() { QThread* workerThread = new QThread(); Worker* worker = new Worker(); worker->moveToThread(workerThread); connect(workerThread, SIGNAL(started()), worker, SLOT(startWork())); connect(worker, SIGNAL(finished()), workerThread, SLOT(quit())); connect(workerThread, SIGNAL(finished()), worker, SLOT(deleteLater())); connect(workerThread, SIGNAL(finished