Meego Wiki
Views

TextEntry API Snapshot

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(removed private properties)
(updated api properties of TextEntry)
 
Line 3: Line 3:
   
   
=API Properties=
=API Properties=
-
;''alias'' text
+
;''alias'' acceptableInput
-
:Provides access to the text of the TextInput
+
:See the corresponding QML TextInput property
-
;''alias'' textInput
+
;''alias'' cursorPosition
-
:Provides access to the TextInput
+
:See the corresponding QML TextInput property
-
;''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  
;''alias'' defaultText  
-
:Sets a defaultText in case the TextEntry is empty. the Text will be displayed as single line
+
:Sets a default text in case the input is empty
-
+
;''alias'' echoMode
 +
:See the corresponding QML TextInput property
 +
;''alias'' font
 +
:Provides access to the font used for the text
 +
;''alias'' inputMask
 +
:See the corresponding QML TextInput property
 +
;''alias'' inputMethodHints
 +
:See the corresponding QML TextInput property
 +
;''alias'' readOnly
 +
:Sets the input to read only. The text can't be altered if set to true
 +
;''alias'' text
 +
:Provides access to the input text
 +
;''alias'' validator
 +
:See the corresponding QML TextInput property
 +
;''alias'' textFocus
 +
:Provides access to the focus property of the TextInput element.
 +
 
=Signals=
=Signals=
;textChanged  
;textChanged  

Latest revision as of 15:20, 4 May 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 acceptableInput
See the corresponding QML TextInput property
alias cursorPosition
See the corresponding QML TextInput property
alias defaultText
Sets a default text in case the input is empty
alias echoMode
See the corresponding QML TextInput property
alias font
Provides access to the font used for the text
alias inputMask
See the corresponding QML TextInput property
alias inputMethodHints
See the corresponding QML TextInput property
alias readOnly
Sets the input to read only. The text can't be altered if set to true
alias text
Provides access to the input text
alias validator
See the corresponding QML TextInput property
alias textFocus
Provides access to the focus property of the TextInput element.

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