Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.11.0 RC 1, 5.11.0
-
None
-
Qt 5.11 rc1
Windows 10
msvc 2017 64bit
Description
MenuItem with checkable property set to true will always display as checked regardless the actual checked property.
See the following code for the issue: (Material theme)
import QtQuick 2.7 import QtQuick.Controls 2.3 ApplicationWindow { menuBar: MenuBar { Menu { title: "Test" MenuItem { checkable: true checked: false text: "Simply Wrong" } } } }
It appears the CheckIndicator now using control.checkState property for testing whether it should display check mark, but unfortunately MenuItem does not have checkState property, thus the wrong appearance.