Results 1 to 3 of 3

Thread: What is the difference between the activated() and triggered() SIGNALs for a QAction?

  1. #1
    Join Date
    Feb 2007
    Posts
    31
    Thanks
    11

    Default What is the difference between the activated() and triggered() SIGNALs for a QAction?

    Hello,

    1) What is the difference between the activated() and triggered() SIGNALs for a QAction?

    2) Is there a document that lists all of the standard signals and what they do (hopefully giving suggested usage with regard to events)?

    Thank you for your time.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: What is the difference between the activated() and triggered() SIGNALs for a QAct

    Quote Originally Posted by JimBrown View Post
    1) What is the difference between the activated() and triggered() SIGNALs for a QAction?
    Better use triggered(), because activated() is part of the Qt3 support layer and advised against using in new code. It's there for making porting job between Qt3 and Qt4 easier.

    2) Is there a document that lists all of the standard signals and what they do (hopefully giving suggested usage with regard to events)?
    Sorry, what do you mean? Signals are documented for every class offering them. Here's an example list of what signals QTextEdit offers.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    JimBrown (27th February 2007)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: What is the difference between the activated() and triggered() SIGNALs for a QAct

    Quote Originally Posted by JimBrown View Post
    1) What is the difference between the activated() and triggered() SIGNALs for a QAction?
    "activated()" is deprecated and is part of the Qt3Support module. You should use triggered() instead.

    2) Is there a document that lists all of the standard signals and what they do (hopefully giving suggested usage with regard to events)?
    Hmm... How about http://doc.trolltech.com/latest/gallery.html ? The "Main classes" subpage of the docs may be of use to you as well.

  5. The following user says thank you to wysota for this useful post:

    JimBrown (27th February 2007)

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.