Ubuntu logo

Developer

  • QML
  • SDK 1.0
  • Ubuntu.Components
  • › Label
  • Search API:

    Label

    Text with Ubuntu styling. More...

    Properties

    Detailed Description

    Example:

    Rectangle {
        color: UbuntuColors.coolGrey
        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".