title: Unable to store Downloaded file from url in QT 4.8
body: <p>I am trying to download a xml file using url in QT 4.8. Here is my code for this:-</p>
  
  <pre><code>downloadurl::downloadurl(QWidget *parent, Qt::WFlags flags)
      : QMainWindow(parent, flags)
  {
      ui.setupUi(this);
  
      QNetworkAccessManager GetFileDownloadNetworkManager;
      QNetworkReply *GetFileDownloadNetworkReply;
  
      QObject::connect(&amp;GetFileDownloadNetworkManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(FileDownloadReplyReceived(QNetworkReply*)));
      QObject::connect(&amp;GetFileDownloadNetworkManager, SIGNAL((QNetworkReply*)), this, SLOT(FileDownloadReplyReceived(QNetworkReply*)));
  
      QUrl url(QString("MyLinkToDownloadFile"));  
      QNetworkRequest reqpn(url);
      reqpn.setRawHeader("Content-Type", "text/xml");
      GetFileDownloadNetworkReply = GetFileDownloadNetworkManager.get(reqpn);
  }
  
  downloadurl::~downloadurl()
  {
  
  }
  
  void downloadurl::FileDownloadReplyReceived(QNetworkReply *Reply)
  {
      if(Reply-&gt;error() == QNetworkReply::NoError)
      {
          QFile DownloadedFile("/FlashDisk/ServerTemp/12012.xml");
          if (!DownloadedFile.open(QIODevice::WriteOnly))
          {
              messageBox.critical(0,"Error","Can't open File");
              return;
          }
          DownloadedFile.write(Reply-&gt;readAll());
          DownloadedFile.close();
      }
      Reply-&gt;deleteLater();
  }
  </code></pre>
  
  <p>My code enters in slot but I can't find created <code>12012.txt</code> in <code>/FlashDisk/ServerTemp/</code> . please Tell what exactly I am missing here. </p>