Results 1 to 2 of 2

Thread: closing file objects of pending requests in QHttp

  1. #1
    Join Date
    Jan 2007
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question closing file objects of pending requests in QHttp

    Hello All,

    When we have multiple requests pending for the QHttp class, and if an error occurs during any such request processing then abort() slot is called automaticaly.
    Now I need to close all the files pointed to by the file objects of the pending requests, before the requests are aborted

    Can anyone help me in this??

    Nisha

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

    Default Re: closing file objects of pending requests in QHttp

    Before they are aborted? If you need it to happen before abort() is called, I suggest you connect to QHttp::requestFinished() signal and act there.

Similar Threads

  1. Retrieving modified date of file using QHttp
    By hardgeus in forum Qt Programming
    Replies: 9
    Last Post: 3rd December 2006, 23:20
  2. QHttp "PUT METHOD" QT Problem File Upload. RFC 2616
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 25th October 2006, 22:02
  3. QHttp GET File & Password
    By patrik08 in forum Qt Programming
    Replies: 4
    Last Post: 11th June 2006, 13:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.