title: qt - how to download and save image via http?
body: <p>I am trying to download and save some images with Qt in a console appplication. Here is what I got so far, (all code is compiling, but after run, it seems to don't enter to <code>replyFinished()</code> function...)</p>
  
  <pre><code>void Test::start()
  {
      std::cout &lt;&lt; "start1";
      QNetworkAccessManager *manager = new QNetworkAccessManager();
      connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
      manager-&gt;get(QNetworkRequest(QUrl("http://www.exylum.mydevil.net/firefox.jpg")));
  }
  
  void Test::replyFinished(QNetworkReply* reply)
  {
      std::cout &lt;&lt; "st";
      QImage* img2 = new QImage();
      img2-&gt;loadFromData(reply-&gt;readAll());
  
      if(img2-&gt;isNull())
          std::cout &lt;&lt; "oops";
  
      if(img2-&gt;save("omg2.jpg", "JPG"))
          std::cout &lt;&lt; "saved";
      else
          std::cout &lt;&lt; "dont...";
  }
  </code></pre>