title: QNetworkReply wait for finished
body: <p>I am using Qt 4.6.3 and the following not-working code</p>
  
  <pre><code>QStringList userInfo;
  QNetworkRequest netRequest(QUrl("http://api.stackoverflow.com/1.1/users/587532"));
  QNetworkReply *netReply = netman-&gt;get(netRequest);
  
  // from here onwards not working
  netReply-&gt;waitForReadyRead(-1);
  if (netReply-&gt;isFinished()==true)
  {userInfo &lt;&lt; do sth to reply;}
  return userInfo;
  </code></pre>
  
  <p>as this function returns an empty QStringList, the app crashes. How to wait until the request has finished and then process the reply <strong>within one function</strong> </p>