Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QAction not triggered ?
kegon last edited by
Hi, I'm porting my software from Qt4 to Qt5.
@ QToolBar *myToolBar = new QToolBar(this);
QAction *myAction = new QAction(myIcon, tr("Options"), this);
QMenu *myMenu = new QMenu(this);
QAction *myMenuAction1 = myMenu->addAction("Task 1");
connect(myMenuAction1, SIGNAL(triggered()), this, SLOT(goMenu1()));
// .. add more menu items ..
I can't get the triggered() signal from the menu actions. Previously I was using the activated() signal (oops - that was Qt3Support).
When I click (and release) on a menu item, the slot is not called.