If you don't have pointers to all the actions in your menu then you can store them in a QHash<QString,QAction*> or you can use qFindChild() to find an object by name knowing its type and parent.
If you don't have pointers to all the actions in your menu then you can store them in a QHash<QString,QAction*> or you can use qFindChild() to find an object by name knowing its type and parent.
Be carefull: There is no mechanism that prevents you from creating two actions with the same name. You cannot be sure that the object name is a unique identifier.
It's nice to be important but it's more important to be nice.
Bookmarks