Hi All
I'm trying to build a module which downloads a binary file in QT, using QNetworkAccessManager. I use the same approach detailed in the documentation (see below), but while I do get readyRead signals, downloadProgress never arrives.
everything happens on the same thread (the project is big so i cannot paste it all)
any ideas? i've exhausted many, many trials - and any thought would be appreciated
thanks very much, Lior
QNetworkRequest request; request.setUrl("http://XXX.s3.amazonaws.com/XXX.exe"); request.setRawHeader("User-Agent", "MyOwnBrowser 1.0");
QNetworkAccessManager * m_manager = new QNetworkAccessManager( this ); m_reply = m_manager->get(request); m_reply->setParent(this);
connect(m_reply, SIGNAL(readyRead()), this, SLOT(slotReadyRead())); connect(m_reply, SIGNAL(downloadProgress(qint64 bytesReceived, qint64 bytesTotal)), this, SLOT(replyDownloadProgress(qint64 bytesReceived, qint64 bytesTotal)));