Skip to content

MaskedTextField

Simple input mask for phone / ID-style patterns (2.71).

import QWinUI3.Extras · src/extras/QWinUI3/Extras/MaskedTextField.qml

Category: Input & forms · Library: v2.80

← Component index

Gallery: MaskedTextFieldsrc/gallery/pages/MaskedTextFieldPage.qml

Extends TextField.

Example

MaskedTextField {
    mask: "(###) ###-####"
    text: ""
}

// --- API ---
// mask: '#' = digit, 'A' = letter, '*' = alphanumeric, other chars are literals
// text / displayText / rawText, acceptableInput

Notes

Thin TextField wrapper — not a full locale/IME mask engine.

API

Properties

Name Type Description
mask string
rawText string
acceptableInput bool

Signals

No custom signals (use inherited signals from the base type).

Methods

No custom methods (use inherited methods from the base type).

Inherited from TextField

Also available (base type / Qt Quick Controls):

  • text
  • placeholderText
  • accepted()

Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.