Qt 6.11 is out! See what's new in the release
blog
How to disable checkbox?
QML and Qt Quick
2
Posts
2
Posters
4.5k
Views
2
Watching
-
Is there any analogue to Qt's setEnabled() in QML ?
I mean control(checkbox in my case) must be disabled and has inactive("grey") color.
Disable part is ok: it is an enable property but how to change its color to inactive?Thanx
-
Hi,
I don't understand what's the problem. Setting enabled to false automatically changes the color of the checkbox.CheckBox { text: "Hello" enabled: !checked }