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."
}