[Interest] Lifetime of QNetworkReply from QNetworkAccessManager

Tom Isaacson Tom.Isaacson at navico.com
Tue Jan 30 04:44:12 CET 2018

If I call a function like QNetworkAccessManager::head() with a QNetworkRequest I get a pointer to a QNetworkReply. But who's responsible for clearing up the QNetworkReply? Is it me, is it parented to the QNetworkReply, is it parented to the QNetworkAccessManager? If the latter, if the QNetworkAccessManager lasts for the lifetime of my application are all the QNetworkReply's going to take memory for the lifetime of the app?

I'd expect this to be covered in the documentation but I can't see anything:


Tom Isaacson

More information about the Interest mailing list