title: Equivalent to time.sleep for a PyQt application
body: <p>I can't use time.sleep in my pyqt application because that freezes the GUI thread, so the GUI will be completely frozen during this time.I have been looking for a way to handle this.</p>
  
  <p>I tried to use QTimer, but it seemed like they need to be linked to another function? Like wait ten seconds then run some function. Is there a way to just have it wait then continue with the current function?</p>
  
  <pre><code>def num(self):
      for i in range(1,999):
          print i
          #Add some sleep here
  
  def testSleep(self):
      QtCore.QTimer.singleShot(2000, self.num)
  </code></pre>