[Qt-interest] How to delete QNetworkReply object?
Oscar Kuchuk
oscar at kuchuk.com.ar
Thu Dec 11 03:50:05 CET 2008
The documentation says you must delete QNetworkReply object within your
QNetworkAccessManager replyFinished slot.
quoting:
'''When the replyFinished slot above is called, the parameter it takes is the
QNetworkReply object containing the downloaded data as well as meta-data
(headers, etc.).
Note: The slot is responsible for deleting the object at that point.'''
If i try to directly delete the parameter i get an error (don't delete an
object in its event handler)
I'm currently using reply->deleteLater()
Is this the correct way?
More information about the Qt-interest-old
mailing list