Logo FluentUI

TextBox QML Type

A single-line text input control. More...

Import Statement: import FluentUI.Controls 1.0

Properties

Detailed Description

TextBox is a single-line text input field following the Fluent Design guidelines. It supports placeholder text, validation, input methods, and various configuration options for text entry.

Property Documentation

font : font

The font used for displaying the text content.

inputMethodHints : enumeration

Hints to the input method about the expected text type. These hints can affect the virtual keyboard layout on touch devices and the input method editor behavior.

maximumLength : int

The maximum number of characters that can be entered into the text box. A value of 0 or less means no limit.

placeholderText : string

The placeholder text displayed when the input field is empty.

readOnly : bool

Whether the text box is read-only. When true, the user cannot modify the text content.

selectByMouse : bool

Whether text can be selected using the mouse. Defaults to true.

text : string

The current text content entered by the user.

validator : Validator

An optional validator that restricts the input to allowed values. When set, the text box only accepts input that passes the validator.