ElideLabel QML Type

Provides an automatically aliding label based on elideWidth More...

Import Statement: import quey.ui 0.1
Inherits:

Item

Properties

Detailed Description

import QtQuick 2.4
import quey.ui 0.1

ApplicationView {
    width: Units.dp(640)
    height: Units.dp(480)

    ElideLabel {
        anchors.centerIn: parent
        text: "Qt is awesome!"
        elideWidth: 30
    }

}

Property Documentation

availableWidth : alias

This is an alias for elideWidth. You can't change this property.


color : color

The label's color.


elide : int

The elide mode. Defaults to Qt.ElideRight. Possible values are:


elideWidth : int

The width avaiable for this label. Defaults to it's width. If this property is set, the label automatically elides if the width is greater than elideWidth.


font : font

The label's font.


text : string

The label's text