Display, content, and media
Native Qt
Chip
A compact selectable or deletable label for filters, tags, and lightweight actions.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
chip "Ruby", icon: :ruby, selected: true, deletable: true
API
Component properties
17 component-specific values, plus shared item and layout properties.
textText configuration for Chip.propertyiconIcon configuration for Chip.propertyselectedSelected configuration for Chip.propertydeletableDeletable configuration for Chip.propertyenabledEnabled configuration for Chip.propertybackgroundBackground configuration for Chip.propertyselected_backgroundSelected background configuration for Chip.propertyforegroundForeground configuration for Chip.propertyselected_foregroundSelected foreground configuration for Chip.propertyaccentAccent configuration for Chip.propertyheightHeight configuration for Chip.propertyradiusRadius configuration for Chip.propertyhorizontal_paddingHorizontal padding configuration for Chip.propertyspacingSpacing configuration for Chip.propertyfont_sizeFont size configuration for Chip.propertyicon_sizeIcon size configuration for Chip.propertyvisibleVisible configuration for Chip.propertyShow 14 shared item properties
opacityscalerotationzwidthfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction
Events
Subscribe with on widget, :event and keep behavior in Ruby.
↗
clickNative event payload↗
changeNative event payload↗
deleteNative event payload