IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

SwitchStyle QML Type

Provides custom styling for Switch.

This type was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

SwitchStyle QML Type

  • Import Statement: import QtQuick.Controls.Styles 1.4

  • Since: Qt 5.2

  • Group: SwitchStyle is part of Styling Controls

Detailed Description

Example:

 
Sélectionnez
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.

padding group

padding.bottom : int

padding.left : int

padding.right : int

padding.top : int

This grouped property holds the top, left, right and bottom padding.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+