tags:

views:

341

answers:

1

QNetworkAccessManager::post function returns network reply object, is caller required to delete this or network access manger will take care of deleting it.?

+1  A: 

From the documentation:

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.

Lukáš Lalinský