switch button problem! qml
-
Hello
I have some switches in my program and I want to disable them using a lock button. when I toggle on the lock switch button the property "checkable" is set to false.
When I toggle on the lock button and touch the switches in won't be toggled. However, if I drag them while the lock switch is still true they will toggle!
I don't know what is the problem! is there any other property that can disable the switch?
regards -
hi @imhs
you could set theenabled
property to false 😉 -
@J-Hilk Thanks a lot. It works. But why this property is not listed in the help?
https://doc.qt.io/qt-5/qml-qtquick-controls2-switch-members.html -
@imhs it is, check the
The following members are inherited from Item.
section -
@imhs It is, see "The following members are inherited from Item." section in the link you posted.
-
@J-Hilk said in switch button problem! qml:
@imhs it is, check the
The following members are inherited from Item.
sectionThanks for your help. I saw it.
-
@jsulm said in switch button problem! qml:
@imhs It is, see "The following members are inherited from Item." section in the link you posted.
Thanks for your help. I saw it.
7/7