Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11.1
-
None
-
ec8952cec9b44e7ab77c5450d8d6fb6579c21555
Description
If a QtQuickControls 2 Menu contains an Action that becomes disabled as a cosequence of being triggered, the menu does not close.
To reproduce the bug, run the following example and click on Menu, then on Item. Item becomes disabled, but stays highlighted and the Menu does not close. The bug does not occur, if a MenuItem is used instead of the action.
import QtQuick.Controls 2.3 ApplicationWindow { visible: true width: 400; height: 400 menuBar: MenuBar { Menu { title: "Menu" Action { text: "Item" onTriggered: enabled = false } } } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-68999 Action in Menu: Won't close menu when action results in disabling itself
-
- Closed
-