Skip to content

EInputOtp Input OTP ​

import EUI 1.0

Examples ​

Input OTP ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
enabledbool

Allow interaction; false disables the control.

Defaulttrue
heightreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitHeight
lengthint

Captcha length or number of OTP input positions.

Default6
maskedbool

Mask OTP characters.

Defaultfalse
numericOnlybool

Accept only digits in OTP input.

Defaulttrue
sizeint

Control size; inherits the nearest EConfigProvider by default.

EStyle.Small
EStyle.Medium
EStyle.Large

DefaultInherited; EStyle.Medium by default
valuestring

Current value; read or write through property bindings, with arrays for multiple or range selection.

Default""
visiblebool

Whether the component is visible.

Defaulttrue
widthreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitWidth

Signals ​

SignaturePurpose
completed(string value)

Emitted when all code slots are filled; value is the complete verification code.

Methods ​

SignaturePurpose
inputAt(index, text)

Update verification code slot index with text.

Released under the MIT License. Third-party assets retain their own licenses.