Relative Content

Tag Archive for c++qt5destructorqthread

Work destructor not called when QThread quit called

I have created a QThread and worker, moved the worker to the thread, and starts fine. When I want to shutdown my app gracefully I want to tell the thread to quit; which SHOULD cause the worker’s destructor to be called. But it’s not! I have a qDebug statement in the worker’s dtor and it never runs.