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

Label QML Type

A text label.

This type was introduced in Qt 5.1.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Label QML Type

  • Import Statement: import QtQuick.Controls 1.4

  • Since: Qt 5.1

  • Inherits: Text

  • Group: Label is part of Buttons and Controls

Detailed Description

Image non disponible

In addition to the normal Text type, Label follows the font and color scheme of the system. Use the text property to assign a text to the label. For other properties check Text.

A simple label looks like this:

 
Sélectionnez
Label {
    text: "Hello world"
}

You can use the properties of Text to change the appearance of the text as desired:

 
Sélectionnez
Label {
    text: "Hello world"
    font.pixelSize: 22
    font.italic: true
    color: "steelblue"
}

See Also

See also Text, TextField, TextEdit

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