Meego Wiki
Views

TextEntry API Snapshot

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
m (corrected example from TextField to TextEntry)
(removed private properties)
Line 15: Line 15:
;''alias'' defaultText  
;''alias'' defaultText  
:Sets a defaultText in case the TextEntry is empty. the Text will be displayed as single line
:Sets a defaultText in case the TextEntry is empty. the Text will be displayed as single line
-
 
-
=Private Properties=
 
-
-
 
   
   
=Signals=
=Signals=

Revision as of 12:26, 28 April 2011

Contents

Description

The TextEntry is a text entry for single lines of text. It will turn scrollable if the text is too big for the text field.

API Properties

alias text
Provides access to the text of the TextInput
alias textInput
Provides access to the TextInput
alias font
Provides access to the font of TextInput
alias readOnly
Sets the text of TextInput to read only. The text can not be altered if set to true.
alias inputMethodHints
Provides access to the inputMethodHints property of TextInput.
alias defaultText
Sets a defaultText in case the TextEntry is empty. the Text will be displayed as single line

Signals

textChanged
Emitted when the text has changed
accepted
Emitted when an enter was pressed and the input is in an acceptable state

Functions

-

Example

TextEntry {
    id: textEntry

    text: "Type here."
}
Personal tools