title: Post quit() to QEventLoop before exec()
body: <p>I create a <code>QEventLoop</code> object and trying to put <code>quit()</code> message before starting it so my intention is to enter and quit a loop:</p>
  
  <pre><code>QEventLoop loop;
  loop.connect(this, SIGNAL(sig()), SLOT(quit()));
  emit sig();
  loop.exec(); // can't get past this point
  </code></pre>
  
  <p>But thread is cycling in loop and never quits ...<br>How can I achieve  intended behaviour ?</p>