Switch QML Type
A component that can be turned on or off More...
Import Statement: | import UIComponents 1.0 |
Inherits: |
Properties
- on : bool
Methods
- toggle()
Detailed Description
A toggle switch has two states: an on
and an off
state. The off
state is when the on property is set to false
.
The ToggleSwitch component is part of the UI Components module.
This documentation is part of the UIComponents example.
Property Documentation
on : bool
Indicates the state of the switch. If false
, then the switch is in the off
state.
Method Documentation
toggle()
A method to toggle the switch. If the switch is on
, the toggling it will turn it off
. Toggling a switch in the off
position will turn it on
.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.9/qml-uicomponents-switch.html