Results 1 to 2 of 2

Thread: QHttp request

  1. #1
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    1

    Default QHttp request

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QHttp request

    I'm sure you can close it once the upload progress reaches 100%.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QHttp request problem on MAC Pro
    By gamitkumar in forum Qt Programming
    Replies: 1
    Last Post: 30th December 2008, 12:47
  2. QHttp request failed
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2008, 16:47
  3. Replies: 1
    Last Post: 9th September 2008, 00:10
  4. QHTTP get request
    By s410i in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2008, 17:35
  5. Trouble sending request with QHttp
    By WinchellChung in forum Newbie
    Replies: 2
    Last Post: 27th June 2007, 18:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.