SwitchStyle QML Type

Provides custom styling for Switch. More...

Import Statement: import QtQuick.Controls.Styles 1.4
Since: Qt 5.2

Properties

Detailed Description

Example:

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

Property Documentation

groove : Component

This property holds the background groove of the switch.


handle : Component

This defines the switch handle.


© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.