Meego Wiki
Views

TextField API Snapshot

From MeeGo wiki
Revision as of 15:31, 4 May 2011 by Pascaldietz (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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