title: Qt/C++ Change parent of worker to qthread fails
body: <p>In order to ease my cleanup efforts, I want to set the parent of my worker object to be the Qthread to which it is moved.  (See below).</p>
  
  <pre><code>void TelnetServer::incomingConnection(qintptr socketDescriptor)
  {
      QThread * TelnetConnectionThread = new QThread(this);
      TelnetConnection *worker = new TelnetConnection(socketDescriptor,TelnetConnectionThread);
      connect(TelnetConnectionThread, SIGNAL(started()), worker, SLOT(start()));
      connect(TelnetConnectionThread, SIGNAL(finished()), worker, SLOT(deleteLater()));
      worker-&gt;moveToThread(TelnetConnectionThread);  // Move worker into QThread
      TelnetConnectionThread-&gt;start();  
  }
  </code></pre>
  
  <p>Right before the start() line, I added:</p>
  
  <pre><code>worker-&gt;setParent(TelnetConnectionThread);
  </code></pre>
  
  <p>but at runtime I see an error that I can't do that because the new parent is in a different thread.  How can that be?  In the line above I moved the worker to the new thread...so the worker should be in the same thread as the TelnetConnectionThread.  Help?</p>
  
  <hr>
  
  <p>I confirmed with some qDebug's and thread() that the worker does in fact get moved to the new thread!  </p>