Label QML Type

Provides a text label with metrics and Quey styling. More...

Import Statement: import quey.ui 0.1
Inherits:

Text

Inherited By:

WrapLabel

Properties

Detailed Description

import QtQuick 2.4
import quey.ui 0.1

ApplicationView {
    Column {
        anchors.fill: parent
        anchors.margins: Style.spacing
        spacing: Style.spacing

        Label {
            font: Style.font.heading
            text: "This is big"
            color: Style.palette.red
        }

        Label {
            font: Style.font.subheading
            text: "This is stylish"
            color: Style.palette.success
        }

        Label {
            text: "This is amazing"
            color: Style.palette.primary
        }
    }
}

Based on QtQuick.Text. Please refer to the Qt documentation for more information.

Property Documentation

metrics : TextMetrics

This property provides metrics based on font and text. Please refer to the Qt documentation for more information.