Label

Text with Ubuntu styling. More...

Inherited by TextCustom.

Properties

Detailed Description

Example:

Rectangle {
    color: "grey"
    width: units.gu(30)
    height: units.gu(30)

    Label {
        anchors.centerIn: parent
        text: "Hello, world!"
        fontSize: "large"
    }
}

Property Documentation

fontSize : string

The size of the text. One of the following strings (from smallest to largest):

  • "xx-small"
  • "x-small"
  • "small"
  • "medium"
  • "large"
  • "x-large"

Default value is "medium".