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

SpinBoxStyle QML Type

Provides custom styling for SpinBox.

This type was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

SpinBoxStyle QML Type

  • Import Statement: import QtQuick.Controls.Styles 1.4

  • Since: Qt 5.2

  • Group: SpinBoxStyle is part of Styling Controls

Detailed Description

Example:

 
Sélectionnez
SpinBox {
    style: SpinBoxStyle{
        background: Rectangle {
            implicitWidth: 100
            implicitHeight: 20
            border.color: "gray"
            radius: 2
        }
    }
}

Property Documentation

 

background : Component

The background of the SpinBox.

[read-only] control : SpinBox

The SpinBox this style is attached to.

decrementControl : Component

The button used to decrement the value.

[since QtQuick.Controls.Styles 1.3] font : font

The font of the control.

This property was introduced in QtQuick.Controls.Styles 1.3.

horizontalAlignment : int

This property defines the default text aligment.

The supported values are:

  • Qt.AlignLeft

  • Qt.AlignHCenter

  • Qt.AlignRight

The default value is Qt.AlignRight

incrementControl : Component

The button used to increment the value.

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.

renderType : int

Override the default rendering type for the control.

Supported render types are:

  • Text.QtRendering

  • Text.NativeRendering

The default value is platform dependent.

See Also

See also Text::renderType

selectedTextColor : color

The highlighted text color, used in selections.

selectionColor : color

The text highlight color, used behind selections.

textColor : color

The text color.

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