EInputTag Input tag
Examples
Input tag
Tag input
Properties
clearableboolShow a clear action; ratings may be cleared by clicking the current score again.
falseclosableboolShow a close or remove button.
truecollapseTagsboolCollapse excess selected tags.
falsedelimiterstringDelimiter splitting input into multiple tags.
""draggableboolEnable dragging of the object defined by the current component.
trueenabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightmaxintMaximum tag count.
0: unlimited
Positive number: limit
0maxCollapseTagsintMaximum directly visible tags when collapsing.
1placeholderTextstringPlaceholder shown when the value is empty.
""prefixComponentComponentComponent slot for custom prefix; null uses the default content. See this page’s examples for delegate context.
nullsizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaultsuffixComponentComponentComponent slot for custom suffix; null uses the default content. See this page’s examples for delegate context.
nulltagDelegateComponentComponent slot for custom tag item; null uses the default content. See this page’s examples for delegate context.
nulltriggerintKeyboard key that submits a new tag.
Qt.Key_*
e.g. Qt.Key_ReturnQt.Key_Enter / Qt.Key_Space
Qt.Key_ReturnvalidateEventboolRequest enclosing-form validation when the value changes.
truevalidationMessagestringValidation message or externally supplied error text.
""validationStateintInput validation state.
EValidationState.NoneEValidationState.SuccessEValidationState.WarningEValidationState.Error
EValidationState.NonevaluevarCurrent value; read or write through property bindings, with arrays for multiple or range selection.
[]visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthrowHeightintRead onlyMenu item, data row or header row height in pixels.
Computed at runtimeSignals
cleared()Emitted after the contents are cleared with the clear action.
added(string tag)Emitted after adding a tag; tag is its text.
removed(string tag)Emitted after removing a tag; tag is its text.
reordered(int from, int to)Emitted after reordering tags; from and to are the old and new indices.
Methods
clear()Clear the current contents or selection.
addTag(text)Add a tag containing text; duplicates and invalid values are not added.
removeTag(index)Remove the tag at index.
moveTag(from, to)Move a tag from index from to index to; indices are zero-based.