Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11.1
-
None
-
763b51d494b708790acc3c3f797313f29d09976b (qt/qtquickcontrols2/5.12)
Description
If an open QtQuickControls 2 Menu is clicked on with the mouse, its first MenuItem gets highlighted even if it is disabled.
To reproduce the bug, run the following example on a desktop environment (where Menu.cascade is true by default). Click on Menu, hover the mouse over Submenu (which opens the submenu) and then click on Submenu. Item1 gets highlighted even if it is disabled.
import QtQuick.Controls 2.3 ApplicationWindow { width: 400; height: 400 visible: true header: MenuBar { Menu { title: "Menu" Menu { title: "Submenu" MenuItem { text: "Item1"; enabled: false } MenuItem { text: "Item2" } } } } }