title: Setting common parent Qt widget for new widget in separate thread
body: <p>I need to create a widget in a separate thread and to set MainWindow for it as a parent widget. Creation of a thread cannot be avoided.</p>
  
  <p>In the constructor of a new widget I am specifying a pointer to MainWindow, but give </p>
  
  <blockquote>
    <p>QObject::setParent: Cannot set parent, new parent is in a different thread</p>
  </blockquote>
  
  <p>How to solve this?</p>
  
  <p>P.S. Child widgets may be numerous.</p>