zui docs v0.0.5
GitHub ↗
Data and collections Native Qt

Tree View Delegate

Tree View Delegate is a native Zui component in the data and collections catalog, with 21 component-specific properties.

Usage

Ruby example

Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.

Ruby
tree_view_delegate "components", depth: 1, expanded: true, has_children: true
API

Component properties

21 component-specific values, plus shared item and layout properties.

textText configuration for Tree View Delegate.property
valueValue configuration for Tree View Delegate.property
rowRow configuration for Tree View Delegate.property
columnColumn configuration for Tree View Delegate.property
depthDepth configuration for Tree View Delegate.property
expandedExpanded configuration for Tree View Delegate.property
has_childrenHas children configuration for Tree View Delegate.property
currentCurrent configuration for Tree View Delegate.property
selectedSelected configuration for Tree View Delegate.property
enabledEnabled configuration for Tree View Delegate.property
widthWidth configuration for Tree View Delegate.property
heightHeight configuration for Tree View Delegate.property
indentationIndentation configuration for Tree View Delegate.property
backgroundBackground configuration for Tree View Delegate.property
selected_backgroundSelected background configuration for Tree View Delegate.property
foregroundForeground configuration for Tree View Delegate.property
selected_foregroundSelected foreground configuration for Tree View Delegate.property
border_colorBorder color configuration for Tree View Delegate.property
font_familyFont family configuration for Tree View Delegate.property
font_sizeFont size configuration for Tree View Delegate.property
visibleVisible configuration for Tree View Delegate.property
Show 13 shared item properties
opacityscalerotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

clickNative event payload
double_clickNative event payload
activateNative event payload
expandNative event payload
collapseNative event payload