title: Qt: Correct way to post events to a QThread?
body: <p>In my Qt application, I have a main thread and a worker thread. The worker thread subclasses <code>QThread</code> and processes events via <code>customEvent</code>. Is this the correct way for the main thread to send events to be processed by the worker thread?</p>
  
  <pre><code>QThread* myWorkerThread = // ...
  
  QApplication::instance()-&gt;postEvent (myWorkerThread, new MyWorkRequestEvent(/* ... */);
  </code></pre>
  
  <p>If I read the documentation correctly, it states that events are processed on the thread of the object that own the event recipient.  Since <code>QThread</code> was created by the main thread, it is owned by the main thread -- so would this event be processed by the main thread (which would be counter-intuitive, and in my case would be wrong)? </p>