I have a context menu on a table with options to add a Capability and Capacity for a certain row. When the user clicks on one of those options they need to provide a name.
For my logic I need to know the row instance, but it seems that this info is not available. How can I know for which row the user has selected one of the options?
Hi Jens,
When using 'singleSelection' by default the row key is passed as the last value of the contextData Object in your QAction.
With your current setup the contextData object should look as followed:
contextData ["11d2c6983f7440dfae8117791c0826d6","51","dummyName","0"] where ‘0’ represents the rowKey.