C
Switch QML Type
Switch button that can be toggled on or off. More...
Import Statement: | import QtQuick.Controls |
Since: | Qt Quick Ultralite 1.0 |
Inherits: |
Detailed Description
Switch is an option button that can be dragged or toggled on (checked) or off (unchecked). Switches are typically used to select between two states.
Switch inherits its API from AbstractButton. For instance, the state of the switch can be set using the checked property.
Column { Switch { text: qsTr("Wi-Fi") } Switch { text: qsTr("Bluetooth") } }
See also Controls Styling and Button Controls.
Available under certain Qt licenses.
Find out more.