Results 1 to 4 of 4

Thread: Connecting many SIGNALS to SLOTS

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    May 2015
    Posts
    66
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    10
    Thanked 17 Times in 17 Posts

    Default Re: Connecting many SIGNALS to SLOTS

    Qt Code:
    1. for(int i=0; i<100; ++i)
    2. QObject::connect(&chb[i], SIGNAL(stateChanged(int)), &lndt[i], SLOT(setText(QString));
    To copy to clipboard, switch view to plain text mode 

    Ps: QCheckbox emits stateChanged signal not textChanged

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

    Alex22 (2nd December 2015)

Similar Threads

  1. Connecting signals and slots from different process
    By Momergil in forum Qt Programming
    Replies: 3
    Last Post: 8th February 2014, 16:59
  2. Connecting QML signals with Qt slots
    By KIBSOFT in forum Qt Quick
    Replies: 1
    Last Post: 15th November 2010, 10:18
  3. Replies: 8
    Last Post: 18th July 2009, 16:57
  4. Connecting signals and slots help pls
    By bod in forum Qt Programming
    Replies: 9
    Last Post: 1st July 2008, 16:01
  5. Connecting signals & slots across different threads
    By jyoti kumar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 13:40

Tags for this Thread

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.