Results 1 to 12 of 12

Thread: QHttp signals don't work !!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    128
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 28 Times in 27 Posts

    Default Re: QHttp signals don't work !!

    Quote Originally Posted by probine View Post
    Qt Code:
    1. connect(http, SIGNAL(requestFinished(int id, bool error)), this, SLOT(readLogo(int id, bool error)));
    To copy to clipboard, switch view to plain text mode 
    No variable names in SIGNAL or SLOT macros.

  2. #2
    Join Date
    Jan 2006
    Posts
    185
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: QHttp signals don't work !!

    Let's go one step back.

    I am not even getting to the readLogo() function, I know it because the following function never prints anything in the QTextBrowser.

    Qt Code:
    1. void ChatUi::readLogo(const QHttpResponseHeader &){
    2. tbLogo->append("<html><table><tr><td>hi</td></tr></table></html>");
    3. }
    To copy to clipboard, switch view to plain text mode 

    I guess I am not even sending the request, then please help me solving this issue first.

  3. #3
    Join Date
    Jan 2006
    Posts
    128
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 28 Times in 27 Posts

    Default Re: QHttp signals don't work !!

    Quote Originally Posted by probine View Post
    I guess I am not even sending the request, then please help me solving this issue first.
    Are you starting the request? (Some qDebug output can do wonders)

    Is your webserver logging some access?

    Is there any warning output regarding signals not connected?

    You might want to see if you get the requestStarted signal.


    If nothing works, post a minimal compilable example...

Similar Threads

  1. Combobox Signals
    By b1 in forum Qt Programming
    Replies: 3
    Last Post: 1st August 2006, 10:21
  2. how to use QHttp inside QThread in Qt3
    By alusuel in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2006, 11:19
  3. QHttp related
    By whoops.slo in forum Qt Programming
    Replies: 12
    Last Post: 20th June 2006, 20:57
  4. Signals destroys my pointer
    By Jojo in forum Qt Programming
    Replies: 12
    Last Post: 7th March 2006, 21:05
  5. KDE Signals
    By chombium in forum KDE Forum
    Replies: 1
    Last Post: 25th January 2006, 18:45

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.