title: How to process signals/idle inside a QThread?
body: <p>I have created a simple threaded network server. The main.cpp calls app.exec() to idle, and the thread fires off as expected once I establish a connection.</p>
  
  <p>In the thread's run() function, I hookup a signal from readyRead to a slot called readCommand:</p>
  
  <pre><code>connect(tcpSocketPtr, SIGNAL(readyRead()), this, SLOT(readCommand()) );
  </code></pre>
  
  <p>and I have defined the readCommand in the .h file for the class, as a "private slot" - since it is only called from within the class. Hope that's right.</p>
  
  <p>after the connect above, the run() function returns. There is no app.exec() call or anything.  Could that be the problem? Do I have to call some function to cause the thread to listen for signals?</p>
  
  <p>When I send text to the port the readCommand function never fires...and I have no idea how to debug this..suggestions?</p>