Logo FluentUI

Label QML Type

A styled text label with Fluent Design typography. More...

Import Statement: import FluentUI 1.0

Properties

Detailed Description

Label is a QML component that extends QtQuick.Controls.Label with Fluent Design theme support. It automatically applies the theme's primary text fill color (textFillColorPrimary) and Typography.body font, and sets the link color to the accent color defined by the parent's FluentUI attached properties.

Usage Example

 import QtQuick
 import FluentUI

 Label {
     text: "Hello, FluentUI"
 }

See also QtQuick.Controls.Label.

Property Documentation

color : color

The text color, defaulting to FluentUI.theme.res.textFillColorPrimary for the current theme.

font : font

The font used for the label text, defaulting to Typography.body.

linkColor : color

The color of hyperlinks within the text, defaulting to the accent color of the current theme.

text : string

The text to display. This property is inherited from QtQuick.Controls.Label.