Both the worker and the QThread issue a finished() signal when they are done. Connect to that signal and put your post-processing in the slot. Then you don't have to block the Qt event loop and GUI update.
Both the worker and the QThread issue a finished() signal when they are done. Connect to that signal and put your post-processing in the slot. Then you don't have to block the Qt event loop and GUI update.
But I whould like to exit the entire program when the user presses Cancel. I would like to make sure the threads are finished before I exit the program.
SepticInsect (12th September 2012)
Thanks everyone for the help! The problem is solved!
Bookmarks