Question about QNetworkReply from QNetworkAccessManager
Hi peoples!
I'm use QNetworkAccessManager to communicate with servers in net using get and post functions/methods of this class...
Docu says what get and post functions
Quote:
returns a new QNetworkReply object
...
Do I need to delete this QNetworkReply objects after the job is done, or the QNetworkAccesManager handle this?
Should I
Code:
delete reply; //reply is pointer on QNetworkReply object, obtained from QNetworkAccessManager->get() function
or not?
Thanks in advance!
Re: Question about QNetworkReply from QNetworkAccessManager
It's all in the documentation ;-)
Quote:
Note: After the request has finished, it is the responsibility of the user to delete the QNetworkReply object at an appropriate time. Do not directly delete it inside the slot connected to finished(). You can use the deleteLater() function.
Re: Question about QNetworkReply from QNetworkAccessManager
Thank you!
Read Detailed Description and not only function description is a good idea :D