EBadge Badge
Examples
Custom colors and offsets
Badge
Properties
badgeDelegateComponentComponent slot for custom badge; null uses the default content. See this page’s examples for delegate context.
nullcolorcolorCustom color; a transparent value usually selects theme or semantic colors.
Dynamic bindingcontentaliasContent slot; declare QML child objects directly inside the component.
Alias: contentHost.dataenabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightisDotboolDisplay the badge as a dot.
falsemaxintMaximum displayed badge number; larger values display the maximum followed by +.
99offsetpointOffset array [x, y] in pixels.
Fields: x, y
Qt.point(0, 0)showZeroboolShow the badge when its value is 0.
falsestyleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.DangervaluevarCurrent 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.
implicitWidthbadgeVisibleboolRead onlyActual badge visibility after hidden and value checks.
Computed at runtimedisplayValuestringRead onlyDisplay text after formatting, progress or badge rules.
Computed at runtimehasValueboolRead onlyWhether the badge value meets display conditions.
Computed at runtime