title: QObject:Cannot create children for a parent that is in different thread.Parent is QTextDocument,parent's thread is QThread,current thread is QThread
body: <p>I am new to python threading and Pyside. I am working on making a communication between two computers but could not create a thread on receiving side
  Here is server code</p>
  
  <pre><code>from PySide import QtCore, QtGui
  import sys
  import receiver
  import os
  from socket import *
  import thread
  
  class mainWindow(QtGui.QMainWindow, receiver.Ui_MainWindow):
  def __init__(self):
      super(self.__class__,self).__init__()
      self.setupUi(self)
      self.show()
      thread.start_new_thread(self.listener,())
  
  def listener(self):
      host = ""
      port = 13000
      buf = 1024
      addr = (host, port)
      UDPSock = socket(AF_INET, SOCK_DGRAM)
      UDPSock.bind(addr)
      (data, addr) = UDPSock.recvfrom(buf)    
      self.textEdit.setText(data)
      UDPSock.close()
  
  def main():
      app = QtGui.QApplication(sys.argv)
      mainWin = mainWindow()
      mainWin.show()
      app.exec_() 
  
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>When I send any message from client, program crashes. </p>
  
  <p>Thread is working perfectly on client side.
  Here is a client code</p>
  
  <pre><code>from PySide import QtCore, QtGui
  import sys
  import main
  import os
  from socket import *
  import thread
  
  class mainWindow(QtGui.QMainWindow, main.Ui_MainWindow):
      def __init__(self):
          super(self.__class__,self).__init__()
          self.setupUi(self)
          self.show()
          self.sendButton.clicked.connect(self.clientProcess)
  
      def clientProcess(self):
          thread.start_new_thread(self.makeClient,())
  
      def makeClient(self):
          host = "192.168.43.143"
          port = 13000
          addr = (host, port)
          UDPSock = socket(AF_INET, SOCK_DGRAM)
          data = "Successfully Completed"
          UDPSock.sendto(data, addr)
          UDPSock.close()
  
  def main():
      app = QtGui.QApplication(sys.argv)
      mainWin = mainWindow()
      mainWin.show()
      app.exec_()
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>what I am doing wrong?</p>