Switch QML Type

A component that can be turned on or off 更多...

import 語句: import UIComponents 1.0
繼承: Item

特性

方法

詳細描述

A toggle switch has two states: an on off state. The off state is when the on property is set to false .

The ToggleSwitch component is part of the UI 組件 模塊。

This documentation is part of the UIComponents 範例。

特性文檔編製

on : bool

Indicates the state of the switch. If false , then the switch is in the off 狀態。


方法文檔編製

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 .