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

RadioButtonStyle QML Type

Provides custom styling for RadioButton.

This type was introduced in Qt 5.1.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

RadioButtonStyle QML Type

  • Import Statement: import QtQuick.Controls.Styles 1.4

  • Since: Qt 5.1

  • Group: RadioButtonStyle is part of Styling Controls

Detailed Description

Example:

 
Sélectionnez
RadioButton {
    text: "Radio Button"
    style: RadioButtonStyle {
        indicator: Rectangle {
                implicitWidth: 16
                implicitHeight: 16
                radius: 9
                border.color: control.activeFocus ? "darkblue" : "gray"
                border.width: 1
                Rectangle {
                    anchors.fill: parent
                    visible: control.checked
                    color: "#555"
                    radius: 9
                    anchors.margins: 4
                }
        }
    }
 }

Property Documentation

 

background : Component

The background under indicator and label.

[read-only] control : RadioButton

The RadioButton this style is attached to.

indicator : Component

This defines the indicator button.

label : Component

This defines the text label.

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.

spacing : int

The spacing between indicator and label.

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