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.
Re: What is the difference between the activated() and triggered() SIGNALs for a QAct
Quote:
Originally Posted by
JimBrown
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.
Quote:
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.
Re: What is the difference between the activated() and triggered() SIGNALs for a QAct
Quote:
Originally Posted by
JimBrown
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.
Quote:
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.