title: How do I create a Window in different QT threads?
body: <p>I have an application in which each thread (except the main thread) needs to create its own window. I tried creating a thread and then calling <code>this-&gt;exec()</code> in the <code>run</code> function. However, I get an error before I even get to that call: <code>ASSERT failure in QWidget: "Widgets must be created in the GUI thread."</code></p>
  
  <p>I want to popup a message window. The problem is that the source has multiple threads each of which may need to popup its own message.</p>