How can i get QAction from QMenu throught index
-
Hi, Ruzik.
Try "this":http://doc.qt.nokia.com/4.7/qwidget.html#actions
@QList<QAction*> actionList = yourMenu->actions()
if (!actionList.empty()) {
QAction *action = actionList.at(index);
//bla bla
}
@
Update: Franzk is faster :-)