FormTextFieldDelegate
Properties | |
alias | acceptableInput |
alias | cursorPosition |
alias | echoMode |
alias | fieldActiveFocus |
alias | inputMethodHints |
string | label |
alias | maximumLength |
alias | placeholderText |
alias | readOnly |
var | status |
string | statusMessage |
alias | validator |
Signals | |
void | accepted () |
void | editingFinished () |
void | textEdited () |
Public Member Functions | |
void | clear () |
void | insert (int position, string text) |
void | select (int start, int end) |
void | selectAll () |
Detailed Description
A Form delegate that corresponds to a text field.
- Since
- KirigamiAddons 0.11.0
Definition at line 46 of file FormTextFieldDelegate.qml.
Property Documentation
◆ acceptableInput
|
read |
This property holds the acceptableInput
of the internal TextField.
Definition at line 100 of file FormTextFieldDelegate.qml.
◆ cursorPosition
|
read |
This property holds the cursorPosition
of the internal TextField.
The cursorPosition
property holds the position of the cursor in the text field. A value of 0 indicates that the cursor is at the beginning of the text field.
This property allows you to programmatically control and access the cursor position within the text field, which can be useful for integrating the FormTextFieldDelegate
component into your project.
- See also
- TextInput.cursorPosition
Definition at line 114 of file FormTextFieldDelegate.qml.
◆ echoMode
|
read |
This property holds the echoMode
of the internal TextField.
This consists of how the text inside the text field will be displayed to the user.
- See also
- TextInput.echoMode
Definition at line 73 of file FormTextFieldDelegate.qml.
◆ fieldActiveFocus
|
read |
This hold the activeFocus state of the internal TextField.
Definition at line 60 of file FormTextFieldDelegate.qml.
◆ inputMethodHints
|
read |
This property holds the inputMethodHints
of the internal TextField.
This consists of hints on the expected content or behavior of the text field, be it sensitive data, in a date format, or whether the characters will be hidden, for example.
- See also
- TextInput.inputMethodHints
Definition at line 84 of file FormTextFieldDelegate.qml.
◆ label
|
read |
A label containing primary text that appears above and to the left the text field.
Definition at line 52 of file FormTextFieldDelegate.qml.
◆ maximumLength
|
read |
set the maximum length of the text inside the TextField if maxLength > 0
Definition at line 56 of file FormTextFieldDelegate.qml.
◆ placeholderText
|
read |
This property holds the placeholderText
of the internal TextField.
This consists of secondary text shown by default on the text field if no text has been written in it.
Definition at line 92 of file FormTextFieldDelegate.qml.
◆ readOnly
|
read |
This hold the readOnly
state of the internal TextField.
Definition at line 64 of file FormTextFieldDelegate.qml.
◆ status
|
read |
This property holds the current status message type of the text field.
This consists of an inline message with a colorful background and an appropriate icon.
The status property will affect the color of statusMessage used.
Accepted values:
Kirigami.MessageType.Information
(blue color)Kirigami.MessageType.Positive
(green color)Kirigami.MessageType.Warning
(orange color)Kirigami.MessageType.Error
(red color)
default: Kirigami.MessageType.Information
if statusMessage is set, nothing otherwise.
- See also
- Kirigami.MessageType
Definition at line 135 of file FormTextFieldDelegate.qml.
◆ statusMessage
|
read |
This property holds the current status message of the text field.
If this property is not set, no status will be shown.
Definition at line 142 of file FormTextFieldDelegate.qml.
◆ validator
|
read |
This property holds the validator
of the internal TextField.
Definition at line 96 of file FormTextFieldDelegate.qml.
Member Function Documentation
◆ accepted
|
signal |
@This signal is emitted when the Return or Enter key is pressed.
Note that if there is a validator or inputMask set on the text input, the signal will only be emitted if the input is in an acceptable state.
◆ clear()
void FormTextFieldDelegate::clear | ( | ) |
Clears the contents of the text input and resets partial text input from an input method.
◆ editingFinished
|
signal |
This signal is emitted when the Return or Enter key is pressed or the text input loses focus.
Note that if there is a validator or inputMask set on the text input and enter/return is pressed, this signal will only be emitted if the input follows the inputMask and the validator returns an acceptable state.
◆ insert()
void FormTextFieldDelegate::insert | ( | int | position, |
string | text ) |
Inserts text into the TextInput at position.
◆ select()
void FormTextFieldDelegate::select | ( | int | start, |
int | end ) |
Causes the text from start to end to be selected.
- Since
- Kirigami Addons 1.4.0
◆ selectAll()
void FormTextFieldDelegate::selectAll | ( | ) |
Causes all text to be selected.
- Since
- Kirigami Addons 1.4.0
◆ textEdited
|
signal |
This signal is emitted whenever the text is edited.
Unlike textChanged(), this signal is not emitted when the text is changed programmatically, for example, by changing the value of the text property or by calling clear().
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:12:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.