switch button problem! qml
-
wrote on 5 Feb 2020, 06:32 last edited by
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 -
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?
regardshi @imhs
you could set theenabled
property to false 😉 -
wrote on 5 Feb 2020, 07:36 last edited by
@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 -
@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 -
@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, see "The following members are inherited from Item." section in the link you posted.
-
wrote on 5 Feb 2020, 08:01 last edited by
@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.
-
@imhs It is, see "The following members are inherited from Item." section in the link you posted.
wrote on 5 Feb 2020, 08:02 last edited by@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.
6/7