title: Getting a page content with Qt
body: <p>I am trying to get the content of a HTTP request into a QString variable with Qt and C++</p>
  
  <pre><code>QNetworkAccessManager networkManager;
  
  QUrl url("https://someurl.test.com/this-actually-exists");
  QNetworkRequest request;
  request.setUrl(url);
  
  QNetworkReply* currentReply = networkManager.get(request);  // GET
  
  QString reply = QTextCodec::codecForMib(1015)-&gt;toUnicode(currentReply-&gt;readAll());
  </code></pre>
  
  <p>Still, the variable <code>reply</code> seems to stay empty. Obviously, I misunderstand the documentation. How do I get this to perform?</p>