-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.4
When using QMenu::setActiveAction() followed by a delayed call to QMenu::activeAction(), the result is inconsistent depending on the number of actions in the menu.
With 3 actions, the final call returns the last set action (as expected):
Active Action: QAction("Item 1")
Active Action: QAction("Item 2")
Active Action: QAction("Item 3")
Active Action: QAction("Item 3")
But with only 2 actions, the final call unexpectedly returns Null Ptr
Active Action: QAction("Item 1")
Active Action: QAction("Item 2")
Active Action: QAction(0x0)
Above result can be seen with attached example. It is observed that problem occurs when we change from an action with submenu to an action without submenu