Results 1 to 2 of 2

Thread: rsslisting example

  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android
    Thanks
    40

    Default rsslisting example

    Hello,
    Ive noticed something strange in the rss listing example(http://doc.trolltech.com/4.4/xml-rss...sting-cpp.html)

    readyread signal of http object is connected to readdata slot:

    Qt Code:
    1. connect(&http, SIGNAL(readyRead(const QHttpResponseHeader &)),
    2. this, SLOT(readData(const QHttpResponseHeader &)));
    To copy to clipboard, switch view to plain text mode 

    when debugging the application; after http.get(url.path()) is called once,
    readyRead signal is emitted "twice"..requestFinished signal is also emitted twice..

    Can anybody give me an explanation about that situation...

    Thanks..

  2. #2
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android
    Thanks
    40

    Default Re: rsslisting example

    I am using version 4.4.0 . when googling i found on http://trolltech.com/developer/changes/changes-4.4.1 that:

    - QHttp
    * [193738] Fixed a bug that would make QHttp continue reading the
    HTTP server's response and emit a readyRead() signal even if
    abort() had already been called.

    I think the problem is related with that bug..

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.