Results 1 to 5 of 5

Thread: QObject signal/slot not working

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Location
    The Netherlands and Spain
    Posts
    150
    Thanks
    6
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QObject signal/slot not working

    Wild guess...
    Does the http object already exist when this is executed:
    connect(http,SIGNAL(done(bool)),this,SLOT(performF unction()));

  2. #2
    Join Date
    Jan 2009
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QObject signal/slot not working

    Yes, I have created the object.

    Qt Code:
    1. QHttp *http = new QHttp(this);
    To copy to clipboard, switch view to plain text mode 

    Oddly enough, when I try to create a class B object manually on the main function, the performFunction slot does execute normally.

Similar Threads

  1. QObject and copy Constructors
    By December in forum Qt Programming
    Replies: 5
    Last Post: 17th July 2008, 16:14

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.