Hello,

I have a menu called AWG which contains five submenus, each representing a specific instance of a general thing (a “PX”).

AWG
  1. PX1
    1. Enable
    2. Disable
    3. Reset
    4. Activate
  2. PX2
    1. Enable
    2. Disable
    3. Reset
    4. Activate
  3. PX3
    1. Enable
    2. Disable
    3. Reset
    4. Activate
  4. PX4
    1. Enable
    2. Disable
    3. Reset
    4. Activate
  5. PX5
    1. Enable
    2. Disable
    3. Reset
    4. 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.