SwitchStyle QML Type

Provides custom styling for Switch 更多...

导入语句: import QtQuick.Controls.Styles 1.4
Since: Qt 5.2

特性

详细描述

范例:

Switch {
    style: SwitchStyle {
        groove: Rectangle {
                implicitWidth: 100
                implicitHeight: 20
                radius: 9
                border.color: control.activeFocus ? "darkblue" : "gray"
                border.width: 1
        }
    }
 }
					

特性文档编制

groove : 组件

This property holds the background groove of the switch.


handle : 组件

This defines the switch handle.