Label QML Type

Extended Text item with Lomiri styling. More...

Import Statement: import Lomiri.Components 1.3
Inherits:

Text

Properties

Detailed Description

Label is an extended Text item with Lomiri styling. It exposes an additional property that provides adaptive resizing based on the measurement unit.

Example:

Rectangle {
    color: LomiriColors.warmGrey
    width: units.gu(30)
    height: units.gu(30)

    Label {
        anchors.centerIn: parent
        text: "Hello world!"
        textSize: Label.Large
    }
}

Property Documentation

textSize : enumeration

This property holds an abstract size that allows adaptive resizing based on the measurement unit (see Units). The default value is Label.Medium.

Note: Setting this disables support for the deprecated fontSize property.

  • Label.XxSmall - extremely small font size
  • Label.XSmall - very small font size
  • Label.Small - small font size
  • Label.Medium - medium font size
  • Label.Large - large font size
  • Label.XLarge - very large font size

This property was introduced in Lomiri.Components 1.3.