I was wondering if it is possible to not show a context menu when selecting specific rows.
Eg. If the value for column A for that specific row is 0, don't show the context menu when this row is selected.
There has been a similar question before where the user asked if certain options could be blocked (so, contrary to my question they still wanted the menu to pop up), where the answer was that it wasn't possible. Does the same apply when hiding the whole menu? Or is there a method to accomplish this? (https://community.dataminer.services/question/hide-options-in-a-context-menu/ )
If you select two rows and one is available and the other doesn't? You should see the context menu or not? You can always validate the rows that were selected on the QAction and apply the logic for the ones that are valid and send a message to the user for the rows that aren't allowed.