How to disable checkbox?
QML and Qt Quick
2
Posts
2
Posters
4.2k
Views
2
Watching
-
wrote on 30 Mar 2015, 20:43 last edited by
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
-
wrote on 30 Mar 2015, 21:20 last edited by
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 }
1/2