PDA

View Full Version : QHttp request



nimsnx
2nd July 2009, 21:29
When making a QHttp::request(header, data, to) the doc is very clear as to when the "to" (QIODevice*) can be deleted.

However, the doc does not specify when the "data" (also QIODevice*) can be deleted.

http://doc.trolltech.com/4.5/qhttp.html#request

I've tried to look through the qt source a bit to no avail.

So... does anyone know when the "data" can be deleted: when the dataSendProgress signal indicates that all of the data has been sent? Or when we've received the response header? Or not until the request has been completed?

Thanks

wysota
2nd July 2009, 21:54
I'm sure you can close it once the upload progress reaches 100%.