title: Cannot download files >= 1GB with Qt
body: <p>I have a program which is supposed to download files over the net. And everything is fine as long as files are small'ish(&lt;1GB). But when files are larger than 1GB one of two things happen:<br>
  a) if I connect signal from QNetworkReply with download progress to one of my slots, application crashes with std::bad_alloc<br>
  b) if I don't connect any signal from QNetworkReply, application stops on 73%.<br>
  Any help mostly appreciated.<br>
  Here is the code I use in my connection, and slot:  </p>
  
  <pre><code>QNetworkReply* reply = network_access_manager_-&gt;get(request);
      connect(reply,SIGNAL(downloadProgress(qint64,qint64)),parent_,SLOT(downloadProgress(qint64,qint64)));  
  </code></pre>
  
  <p>And here is the slot:  </p>
  
  <pre><code>void MainWindow::downloadProgress(qint64 bytesReceived,qint64 bytesTotal)
  {
  
      try
      {
      ui-&gt;label-&gt;setText(QString::number(bytesReceived));
  
      ui-&gt;label_2-&gt;setText(QString::number(bytesTotal));
      ui-&gt;progressBar-&gt;setRange(0,bytesTotal);
      ui-&gt;progressBar-&gt;setValue(bytesReceived);
      }
      catch(std::exception&amp; e)
      {
          qDebug() &lt;&lt; e.what();
      }
  
  }
  </code></pre>