Meego Wiki
Views

TextField API Snapshot

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(removed private properties)
(updated api properties of TextField)
 
Line 3: Line 3:
   
   
=API Properties=
=API Properties=
-
;''string'' text
+
;''alias'' cursorPosition
-
:The text fields text
+
:See corresponding QML TextEdit property
-
;''alias'' font
+
-
:The texts font item
+
-
;''bool'' readOnly
+
-
:Sets the text read only. The text can not be altered if set to true.
+
;''alias'' defaultText  
;''alias'' defaultText  
-
:Sets a defaultText in case the TextField is emtpy
+
:sets a defaultText in case the TextField is empty
-
+
;''alias'' font
 +
:See corresponding QML TextEdit property
 +
;''alias'' readOnly
 +
:Sets the text to read only. The text can't be altered if set to true
 +
;''alias'' text
 +
:See corresponding QML TextEdit property
 +
;''alias'' textFormat
 +
:See corresponding QML TextEdit property
 +
;''alias'' textFocus
 +
:Provides access to the focus property of the TextEdit element
 +
 
=Signals=
=Signals=
;textChanged  
;textChanged  

Latest revision as of 15:31, 4 May 2011

Contents

Description

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

API Properties

alias cursorPosition
See corresponding QML TextEdit property
alias defaultText
sets a defaultText in case the TextField is empty
alias font
See corresponding QML TextEdit property
alias readOnly
Sets the text to read only. The text can't be altered if set to true
alias text
See corresponding QML TextEdit property
alias textFormat
See corresponding QML TextEdit property
alias textFocus
Provides access to the focus property of the TextEdit element

Signals

textChanged
Emitted when the text has changed

Functions

-

Example

TextField {
    id: textField

    text: "Type here."
}
Personal tools