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

Label QML Type

Styled text label with inherited font.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Label QML Type

  • Import Statement: import QtQuick.Controls

  • Inherits: Text

  • Group: Label is part of text

Detailed Description

Label extends Text with styling and font inheritance. The default colors and font are style specific. Label can also have a visual background item.

Image non disponible
 
Sélectionnez
Label {
    text: "Label"
}

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
}

See Also

Property Documentation

 

background : Item

This property holds the background item.

If the background item has no explicit size specified, it automatically follows the control's size. In most cases, there is no need to specify width or height for a background item.

See Also

[since QtQuick.Controls 2.5 (Qt 5.12)] bottomInset : real

This property holds the bottom inset for the background.

This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).

See Also

[read-only, since QtQuick.Controls 2.5 (Qt 5.12)] implicitBackgroundHeight : real

This property holds the implicit background height.

The value is equal to background ? background.implicitHeight : 0.

This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).

See Also

[read-only, since QtQuick.Controls 2.5 (Qt 5.12)] implicitBackgroundWidth : real

This property holds the implicit background width.

The value is equal to background ? background.implicitWidth : 0.

This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).

See Also

[since QtQuick.Controls 2.5 (Qt 5.12)] leftInset : real

This property holds the left inset for the background.

This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).

See Also

[since QtQuick.Controls 2.5 (Qt 5.12)] rightInset : real

This property holds the right inset for the background.

This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).

See Also

[since QtQuick.Controls 2.5 (Qt 5.12)] topInset : real

This property holds the top inset for the background.

This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).

See Also

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