Results 1 to 7 of 7

Thread: learning all thing about signals and slots

  1. #1
    Join Date
    Nov 2015
    Posts
    128
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    70

    Default learning all thing about signals and slots

    Hi

    I want to know and learn all thing about signals ans slots and connecting of them. are there any references that explain completely. Thanks for any help.

  2. #2
    Join Date
    Apr 2011
    Posts
    195
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 4 Times in 4 Posts

    Default Re: learning all thing about signals and slots


  3. #3
    Join Date
    Nov 2015
    Posts
    128
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    70

    Default Re: learning all thing about signals and slots

    Quote Originally Posted by Qiieha View Post
    Qiieha, thanks but in this Doc., for example there is no explanation about connecting a signal to another signal that we could connect a signal to another signal. are there other references that have more examples and complete explanation?

  4. #4
    Join Date
    May 2015
    Posts
    66
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    10
    Thanked 17 Times in 17 Posts

    Default Re: learning all thing about signals and slots

    You cannot connect a signal to another signal.. you can may be check QSignalMapper documentation..

  5. #5
    Join Date
    Nov 2015
    Posts
    128
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    70

    Default Re: learning all thing about signals and slots

    Quote Originally Posted by Vikram.Saralaya View Post
    You cannot connect a signal to another signal.. you can may be check QSignalMapper documentation..
    We could. for example:
    Qt Code:
    1. connect(lineEdit, SIGNAL(textChanged(const QString &)),
    2. this, SIGNAL(updateRecord(const QString &)));
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Oct 2009
    Posts
    483
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanked 97 Times in 94 Posts

    Default Re: learning all thing about signals and slots

    Quote Originally Posted by Vikram.Saralaya View Post
    You cannot connect a signal to another signal.. you can may be check QSignalMapper documentation..
    Yes you can. This causes the second signal to be emitted whenever the first one is, and is in fact quite useful to simulate "exporting" a signal from a private object.

  7. The following user says thank you to yeye_olive for this useful post:

    Vikram.Saralaya (4th December 2015)

  8. #7
    Join Date
    May 2015
    Posts
    66
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    10
    Thanked 17 Times in 17 Posts

    Default Re: learning all thing about signals and slots

    @yeye_olive I never encountered a case for that! Thanks for that info.. might be useful someday
    @Alex22 my bad sorry!

Similar Threads

  1. Learning how to send SIGNALS from a QDialog to a SLOT QT5
    By chasapis.christos in forum Newbie
    Replies: 4
    Last Post: 13th November 2013, 11:15
  2. Replies: 2
    Last Post: 18th April 2013, 13:15
  3. Signals and Slots
    By ggdev001 in forum Qt Programming
    Replies: 6
    Last Post: 20th February 2013, 13:07
  4. Signals and slots
    By sylvarant in forum Newbie
    Replies: 4
    Last Post: 11th September 2007, 16:48
  5. Signals and Slots in dll
    By ankurjain in forum Qt Programming
    Replies: 8
    Last Post: 29th March 2006, 09:12

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.