title: QThread blocking main application
body: <p>I have a simple form UI that has a slot for a button, starting a thread:</p>
  
  <pre><code>void MainWindow::LoadImage()
  {
      aThread-&gt;run();
  }
  </code></pre>
  
  <p>And the run() method looks like this:</p>
  
  <pre><code>void CameraThread::run()
  {
      qDebug("Staring Thread");
      while(1)
      {
          qDebug("ping");
          QThread::sleep(1);
      }
  }
  </code></pre>
  
  <p>When I click the button that calls LoadImage(), the UI becomes unresponsive. I periodically see the "ping" message as the debug output but the UI hangs, does not respond to anything.
  Why is my thread not running separately? CameraThread derived as public QThread
  I am using gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) with QT libraries and QT Creator from Ubuntu 10.04(x86) repositories.</p>