Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.2.13, 6.5.5, 6.7.2, 6.8.0 Beta4
-
-
353ce5344 (dev), 686c4835c (6.8), 9dfd8410b (dev), f0508b7ff (dev), bbc46bbc7 (6.9), 05016926a (6.9), d275841dd (6.8), cdcf00390 (6.8)
Description
The attached program has 5 QActions.
4 of these actions are in a context menu which opens with a right click on the main widget of the application.
The fifth QAction controls the visibility state of the other 4 actions.
Follow the following work flow:
- Right click on the main widget, popup menu appears showing 1 - 4.
- Select one of the actions. Debug show the action number that was clicked on.
- Click on invert actions in top left, uncheck "Invert", some debug appears.
- Right click on the main widget, as expected popup menu does not appear.
- Click on invert actions in top left, recheck "Invert", some debug appears.
- Right click on the main widget, popup menu does not appear despite actions now being visible.
- Move mouse slightly to the right and left click. Debug for one of the actions appears - despite not being visible the menu actions still respond to clicks in the appropriate locations.
I have tested this with Qt 5.15.16, 5.15.17. Everything works as expected.
Qt 6.2.13, 6.5.5, 6.7.2. Performs as above, once menu is attempted to be opened with no items visible, it never shows again, but when clicking on the "invisible visible" actions they work.
6.8.0-beta4. Slightly different, but still not correct. On the 5th step above when rechecking the "Invert" action the menu suddenly appears as it now has visible actions. In my opinion it should not do this as once the user has clicked on "Invert actions" the "invisible menu" no longer has focus and should have been closed, therefore it should not show just because the action visibility state has been changed.