Hello,
I have a menu called AWG which contains five submenus, each representing a specific instance of a general thing (a “PXâ€).
AWG
- PX1
- Enable
- Disable
- Reset
- Activate
- PX2
- Enable
- Disable
- Reset
- Activate
- PX3
- Enable
- Disable
- Reset
- Activate
- PX4
- Enable
- Disable
- Reset
- Activate
- PX5
- Enable
- Disable
- Reset
- Activate
Now each of these PX can be enabled, disabled, reset, and activated. Currently, I have four QActions representing those actions and I’ve added those actions to each PX submenu.
The question, how do I determine which submenu from which the action was triggered/clicked?
I need that information to apply the action to the right PX. (I can use the menu's text as a key to the right object.)
Any suggestions? BTW, I couldn’t find any obvious means of getting the “path†of an action. By path, I mean what chain of menus (if any), were clicked to trigger this action.
Thanks.
Bookmarks