Stop download with QNetworkReply
-
Hi! Does this also happen when you replace
abort()withclose()? Another thing: After callingabort(), is thefinished()signal emitted? -
Hi! Does this also happen when you replace
abort()withclose()? Another thing: After callingabort(), is thefinished()signal emitted?And: On what platform do you observe this behaviour? Windows? Linux?
-
BTW: In your
cancelDownload()function, it says:reply->abort(); reply = 0;Looks like a memory leak to me.
-
And: On what platform do you observe this behaviour? Windows? Linux?
-
hi
inDownloader::Downloader(QUrl Url, QObject *parent) : QObject(parent) { QNetworkRequest request(Url); DownloadManager.get(request);<<<<< THIS ? reply = DownloadManager.get(request);you have extra DownloadManager.get(request);
if I // it, it now drops to 0 when I abort.
Before it did not. -
hi
inDownloader::Downloader(QUrl Url, QObject *parent) : QObject(parent) { QNetworkRequest request(Url); DownloadManager.get(request);<<<<< THIS ? reply = DownloadManager.get(request);you have extra DownloadManager.get(request);
if I // it, it now drops to 0 when I abort.
Before it did not.@mrjj Guter Mann. ;-)
-
hi
inDownloader::Downloader(QUrl Url, QObject *parent) : QObject(parent) { QNetworkRequest request(Url); DownloadManager.get(request);<<<<< THIS ? reply = DownloadManager.get(request);you have extra DownloadManager.get(request);
if I // it, it now drops to 0 when I abort.
Before it did not. -
hi
inDownloader::Downloader(QUrl Url, QObject *parent) : QObject(parent) { QNetworkRequest request(Url); DownloadManager.get(request);<<<<< THIS ? reply = DownloadManager.get(request);you have extra DownloadManager.get(request);
if I // it, it now drops to 0 when I abort.
Before it did not.