title: PyQt update gui
body: <p>I'm trying to update the text in a Qt GUI object via a <code>QThread</code> in PyQt but I just get the error <code>QPixmap: It is not safe to use pixmaps outside the GUI thread</code>, then it crashes. I would really appreciate any help, thanks.</p>
  
  <pre><code>class MainWindow(QMainWindow, Ui_MainWindow):
  
      def __init__(self, parent = None):
          QMainWindow.__init__(self, parent)
          self.setupUi(self)
          self.output = Output()
  
      def __del__ (self):
          self.ui = None
  
      @pyqtSignature("")
      def on_goBtn_released(self):
          threadnum = 1
          #start threads
          for x in xrange(threadnum):
              thread = TheThread() 
              thread.start()
  
  
  class Output(QWidget, Ui_Output):
  
      def __init__(self, parent = None):
          QWidget.__init__(self, parent)
          self.setupUi(self)
          self.ui = Ui_Output
          self.show()
  
      def main(self):
          self.textBrowser.append("sdgsdgsgsg dsgdsg dsgds gsdf")
  
  
  
  class TheThread(QtCore.QThread):
  
      trigger = pyqtSignal()
  
      def __init__(self):
          QtCore.QThread.__init__(self)
  
      def __del__(self):
          self.wait()
  
      def run(self):
          self.trigger.connect(Output().main())
          self.trigger.emit()
  </code></pre>