QT Launch on background thread
<p>I'm new to QT and need to run a process on the background thread but am having a hard time:</p>

<pre><code>        QApplication::setOverrideCursor(Qt::WaitCursor);
        window.connect();
        QCoreApplication::processEvents();
        QApplication::restoreOverrideCursor();
        window.show();
</code></pre>

<p>Currently the connect() function is blocking the UI, how can I wait for it without locking up the UI? connect() is making a reuqest to a server.</p>