Results 1 to 9 of 9

Thread: create multiple buttons with signal and slots

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: create multiple buttons with signal and slots

    Qt Code:
    1. connect(signalMapper,SIGNAL(mapped(QWidget*)),this,SLOT(onbedclicked(QWidget*)));
    To copy to clipboard, switch view to plain text mode 

    must be outside your loop! because then you conntect the signal mapper n-times.

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

    mohanakrishnan (14th November 2009)

Similar Threads

  1. Queuing problem with signal and slots
    By montylee in forum Qt Programming
    Replies: 4
    Last Post: 20th November 2009, 06:11
  2. filter signal to limited slots
    By sriky27 in forum Qt Programming
    Replies: 17
    Last Post: 26th March 2009, 16:59
  3. How to Implement signal and slots for QAccessibleWidget
    By Rakesh_Kumar in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2009, 06:57
  4. Signal and slots
    By villy in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2007, 10:10
  5. Problem with Signal and Slots
    By Kapil in forum Installation and Deployment
    Replies: 2
    Last Post: 10th February 2006, 08:51

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.