title: Background thread with QThread in PyQt
body: <p>I have a program which interfaces with a radio I am using via a gui I wrote in PyQt.  Obviously one of the main functions of the radio is to transmit data, but to do this continuously, I have to loop the writes, which causes the gui to hang. Since I have never dealt with threading, I tried to get rid of these hangs using <code>QCoreApplication.processEvents().</code> The radio needs to sleep between transmissions, though, so the gui still hangs based on how long these sleeps last.  </p>
  
  <p>Is there a simple way to fix this using QThread?  I have looked for tutorials on how to implement multithreading with PyQt, but most of them deal with setting up servers and are much more advanced than I need them to be.  I honestly don't even really need my thread to update anything while it is running, I just need to start it, have it transmit in the background, and stop it.</p>