Qt Code:
To copy to clipboard, switch view to plain text mode
I don't know call what.
I make a downloader into a app, when I cancel download, I waning on console.
I don't know how to debug with problem.
Qt Code:
To copy to clipboard, switch view to plain text mode
I don't know call what.
I make a downloader into a app, when I cancel download, I waning on console.
I don't know how to debug with problem.
Well, with all the detailed information you have provided, I think the correct answer is that your program has a bug in it. If you find the bug and fix it, the warning should go away.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
I used above code to stop download file.QNetworkReply *reply = QNetAccessMananger::get(request);
....
if (reply != nullptr)
{
reply->disconnect();
reply->abort();
reply->deleteLater();
reply = nullptr;
}
Last edited by madawg; 26th June 2018 at 07:20.
That's very useful. What's "reply"? A pointer to something which you don't consider important enough to identify.
Come on. If you want help to try to solve your problem, you have to provide some information that actually tells us something about what you are doing. Otherwise, you're just wasting your time and ours. We don't have a copy of your code sitting on our desk. So how are we supposed to understand from 4 lines of meaningless code what you might be doing right or wrong?
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
I updated it:
QNetworkReply *reply = QNetAccessMananger::get(request);
I am afraid the get function is not static, so thus you will probably need something like this:
Qt Code:
QNetworkAccessManager *manager = new QNetworkAccessManager(this); QNetworkReply *reply = manager->get(request);To copy to clipboard, switch view to plain text mode
http://doc.qt.io/qt-4.8/qnetworkaccessmanager.html#details
sorry. It is not static, I only show it as detail more.
Bookmarks