title: Qt QNetworkReply is always empty
body: <p>I want to see the results of a GET request. By my understanding, this code should do it. What am I doing wrong?</p>
  
  <pre><code>void getDoc::on_pushButton_2_clicked() 
  {
      manager = new QNetworkAccessManager(this);
      connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
      manager-&gt;get(QNetworkRequest(QUrl("http://www.google.com")));
  }
  
  void getDoc::replyFinished(QNetworkReply *reply)
  {
      qDebug() &lt;&lt; reply-&gt;error(); //prints 0. So it worked. Yay!
      QByteArray data=reply-&gt;readAll();
      qDebug() &lt;&lt; data; // This is blank / empty
      QString str(data);
      qDebug() &lt;&lt; "Contents of the reply: ";
      qDebug() &lt;&lt; str; //this is blank or does not print.
  }
  </code></pre>
  
  <p>The code compiles and runs fine. It just doesn't work. </p>