Switch QML Type
A component that can be turned on or off 更多...
Import Statement: | import UIComponents 1.0 |
基类: |
属性
- on : bool
方法
- toggle()
详细描述
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.
属性
成员
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
.