When playing with Qthread I often use the following code in the destructor :
Qt Code:
  1. while ( isRunning() ) quit();
To copy to clipboard, switch view to plain text mode