title: Pause and Resume a QThread
body: <p>I've recently began learning about QThreads and I've a program which runs a 4 hours long loop in a separate thread (so that I may continue to use the GUI).  What I am after is, something that will pause/suspend the thread when the user clicks pause qpushbutton, and when the user clicks the resume qpushbutton, the program should resume.  How may I achieve this?</p>
  
  <p>I was thinking of sending signals from my main class; however, I'm not sure how I can handle them in the thread.  Is it possible to handle signals sent from the main class in a thread?  Currently, I have the thread emitting signals to the main class, and that works fine, but I'm not sure how to go about sending threads from the main class, and receiving them in the thread.</p>