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

TextAreaStyle QML Type

Provides custom styling for TextArea.

This type was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

TextAreaStyle QML Type▲

  • Import Statement: import QtQuick.Controls.Styles 1.4

  • Since: Qt 5.2

  • Inherits: ScrollViewStyle

  • Group: TextAreaStyle is part of Styling Controls

Detailed Description▲

Example:

 
Sélectionnez
TextArea {
    style: TextAreaStyle {
        textColor: "#333"
        selectionColor: "steelblue"
        selectedTextColor: "#eee"
        backgroundColor: "#eee"
    }
}

Property Documentation▲

 

backgroundColor : color▲

The background color.

[read-only] control : TextArea▲

The TextArea this style is attached to.

font : font▲

The current font.

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.

[since QtQuick.Controls.Styles 1.3] textMargin : real▲

The default margin, in pixels, around the text in the TextArea.

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

See Also▲

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