[SOLVED] Disable/Enable CheckBox
-
wrote on 17 Dec 2014, 09:35 last edited by
Hello,
is there any simple way to disable a CheckBox?
Meaning it does not respond to any mice or keyboard events any more
and also to have the possibility to give it a "grayisch" disabled look.If there is no simple solution, has anyone already found a workaround and
wants to share his/her solution?Thank you for your help
Cheers
Kieren -
Hi,
Are you thinking of something like the "enabled":http://doc.qt.io/qt-5/qwidget.html#enabled-prop property ?
-
wrote on 17 Dec 2014, 10:31 last edited by
Hi,
yes this was exactly what I was searching for.
The QML Item has this property so the CheckBox too.
Must have been blind to overlook this one while searching for disable.Thanks a lot and sorry for the stupid question
Cheers
Kieren -
That's not a stupid question, it's a beginner one plus I've missed the fact that you where asking for QtQuick ;)
Happy coding !
1/4