Results 1 to 3 of 3

Thread: slots and signals don't seem to be recognized

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: slots and signals don't seem to be recognized

    I've never seen 'slots:' in a class without a visibility specification. It might not be the error, but it is worth a try. In your case, I guess that would be 'private slots:'.

    Also, you might be interested in auto-connect slots. It's a Qt slot naming convention (on_<object>_<signal>). If you call your slot 'on_this_clicked()', you don't need to explicitly connect.
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

  2. The following user says thank you to Michiel for this useful post:

    Jessehk (31st July 2007)

  3. #2
    Join Date
    Jul 2007
    Posts
    8
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: slots and signals don't seem to be recognized

    Quote Originally Posted by Michiel View Post
    I've never seen 'slots:' in a class without a visibility specification. It might not be the error, but it is worth a try. In your case, I guess that would be 'private slots:'.

    Also, you might be interested in auto-connect slots. It's a Qt slot naming convention (on_<object>_<signal>). If you call your slot 'on_this_clicked()', you don't need to explicitly connect.
    Thanks Michiel. The private slots did it.

Similar Threads

  1. Signals and Slots question
    By Thoosle in forum Qt Programming
    Replies: 5
    Last Post: 5th December 2006, 00:24
  2. Nested signals and slots
    By vishva in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2006, 09:47
  3. Signals and Slots in dll
    By ankurjain in forum Qt Programming
    Replies: 8
    Last Post: 29th March 2006, 08:12
  4. Order of signals and slots
    By Morea in forum Newbie
    Replies: 1
    Last Post: 26th February 2006, 22:09
  5. Problem with Signals and Slots
    By Kapil in forum Newbie
    Replies: 11
    Last Post: 15th February 2006, 11:35

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.