Stop download with QNetworkReply
- 
@ARASHz4 said: 
 ok. maybe silly questions but the QNetworkReply you abort() is
 the only active one?
- 
@ARASHz4 
 Im just fishing.
 Is there any chance u abort other one
 than the actual download one?
- 
@ARASHz4 
 Ok. abort should do it as far as I know.
 Sorry. lets wait and see if someone has better ideas.
- 
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.
