Hello everybody, I need your help with Threads ...
in the main.cpp file I start a main window, do stuff, ecc ...and a QThread to do some processing in parallel. When I exit from the menu or close the main window, in closeEvent() I send a signal to the thread to set a variable to stop the thread. The signal is received in the thread and the run() method stop working (checked). But, the signal finished() I set to be sent back to the main (once inside closeEvent()) and then check that the thread stopped, is not received. Any idea why? thx in advance,
Bookmarks