SwitchStyle QML Type
Provides custom styling for Switch 更多...
Import Statement: | import QtQuick.Controls.Styles 1.4 |
开始支持版本: | Qt 5.2 |
属性
详细描述
Example:
Switch { style: SwitchStyle { groove: Rectangle { implicitWidth: 100 implicitHeight: 20 radius: 9 border.color: control.activeFocus ? "darkblue" : "gray" border.width: 1 } } }
属性
groove : Component |
This property holds the background groove of the switch.
handle : Component |
This defines the switch handle.