Meego Wiki
Views

Label API Snapshot

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(created Label API Snapshot page)
(removed private properties)
 
Line 19: Line 19:
;''string'' background  
;''string'' background  
:Sets the source for the background image
:Sets the source for the background image
-
 
-
=Private Properties=
 
-
-
 
   
   
=Signal=
=Signal=

Latest revision as of 12:27, 28 April 2011

Contents

Description

This is a theme conform label, displaying a text.

API Properties

alias color
Provides access to the label's color
alias smooth
bool, true if the text should be smoothed
bool elideText
True if the text should elide if it's to long
alias text
Provides access to the label's text string
alias textFormat
Provides access to the label's text format
alias wrapMode
Provides access to the label's wrap mode
alias font
Provides access to the label's font
string background
Sets the source for the background image

Signal

-

Functions

-

Example

Label {
    id: myLabel

    text: qsTr("Label")
    width: 200
    height: 50
}
Personal tools