PDA

View Full Version : How to go to slot of an action on the menubar?



Bong.Da.City
6th September 2010, 10:57
Hi.. I created a menubar on the mainwindow of my application ... i had added also some actions.. but how to go to the slot of this actions... for example if you click on the Help-->About i want a QMessageBox to been shown.....

wysota
6th September 2010, 11:16
QAction has a triggered() signal. Connect a slot to it.

nish
6th September 2010, 11:51
there is also a shortcut addAction overload which takes the slot to be connected as the parameter.