Thanks. I think you got it. How did you know where to look? I wasn't able to figure it out
Thanks. I think you got it. How did you know where to look? I wasn't able to figure it out
You look at the Qt documentation, in this case for QWidget (which is where your addAction() method is defined). You see that the argument for addAction() is an instance of a QAction class. If you look at its documentation, you'll see a list of the signals; if the class inherits from another Qt class, look at the signals and slots for the base classes as well. Not only does QAction have a triggered() signal, but it also has 3 others, plus two inherited from QObject, its base class.
It also helps to look at the Qt examples and tutorials where almost anything you would want to do in Qt is demonstrated, at least at a basic level, in C++ and usually QML. The documentation for Qt 4.8 is also available if you google for it.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks