A TextField accepts key inputs. More...
A TextField is resized to fit all input characters or can be fitted onto a fixed size. The line edit can also mask the input characters as when the user enters their password.
The position of the cursor in the TextField.
See also TextInput::cursorPosition.
Specifies how (or if) the text is displayed when the user enters text into the text field. For example, you can set the echo mode to Password so that the entered text is shown as asterisks.
See also TextInput::echoMode.
Allows you to restrict what can be entered into the text field. See QLineEdit::inputMask for details about how to define the input mask.
See also acceptableInput, validator, and TextInput::inputMask.
Settings that indicate what kind of input can be accepted by text field. The value is from Qt::InputMethodHints
See also TextInput::inputMethodHints.
The text that is shown in the text field before the user enters any text. When the user starts entering text, the placeholder text is hidden.
If this is true, the text field can only be viewed, it cannot be edited.
If this is false, the text field can be edited.
See also TextInput::readOnly.
This read-only property provides the text that is currently selected in the text field.
See also TextInput::selectedText.
The cursor position after the last character in the current selection.
See also selectionstart, selectedText, cursorPosition, and TextInput::selectionEnd.
The cursor position before the first character in the current selection.
See also selectionEnd, selectedText, cursorPosition, and TextInput::selectionStart.
Allows you to set a validator (IntValidator, DoubleValidator or RegExpValidator) for the text field. See TextInput::validator for details.
See also acceptableInput and inputMask.
Moves the currently selected text to the system clipboard.
See also TextInput::cut().
Returns the character position at x pixels from the left edge of the text field.
See also TextInput::positionAt().
Returns the rectangle that the cursor would occupy if it was placed at pos character position.
This is similar to setting the cursorPosition, and then querying the cursor rectangle, but the cursorPosition is not changed.
See also cursorPosition and TextInput::positionToRectangle().
Causes the text from start to end to be selected.
See also selectionStart, selectionEnd, and TextInput::select().
Causes all text in the text field to be selected.
See also TextInput::selectAll().
Causes the word closest to the current cursor position to be selected.
See also TextInput::selectWord().