Data and collections
Native Qt
Tree View
Tree View is a native Zui component in the data and collections catalog, with 50 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.
rows = [{
name: "src", kind: "folder", children: [
{ name: "app.rb", kind: "file", children: [] }
]
}]
tree_view rows,
columns: [{ key: :name, label: "Name", width: 280 },
{ key: :kind, label: "Kind", width: 110 }],
children_field: :children,
expanded_paths: [[0]]
API
Component properties
50 component-specific values, plus shared item and layout properties.
rowsRows configuration for Tree View.propertycolumnsColumns configuration for Tree View.propertychildren_fieldChildren field configuration for Tree View.propertyselected_pathSelected path configuration for Tree View.propertyselected_columnSelected column configuration for Tree View.propertyexpanded_pathsExpanded paths configuration for Tree View.propertyexpand_depthExpand depth configuration for Tree View.propertyshow_headerShow header configuration for Tree View.propertyheader_heightHeader height configuration for Tree View.propertyrow_heightRow height configuration for Tree View.propertycolumn_widthColumn width configuration for Tree View.propertyrow_spacingRow spacing configuration for Tree View.propertycolumn_spacingColumn spacing configuration for Tree View.propertyindentationIndentation configuration for Tree View.propertyleft_marginLeft margin configuration for Tree View.propertyright_marginRight margin configuration for Tree View.propertyselection_behaviorSelection behavior configuration for Tree View.propertyselection_modeSelection mode configuration for Tree View.propertyeditableEditable configuration for Tree View.propertyedit_triggersEdit triggers configuration for Tree View.propertyalternating_rowsAlternating rows configuration for Tree View.propertyanimateAnimate configuration for Tree View.propertyreuse_itemsReuse items configuration for Tree View.propertykey_navigation_enabledKey navigation enabled configuration for Tree View.propertypointer_navigation_enabledPointer navigation enabled configuration for Tree View.propertyinteractiveInteractive configuration for Tree View.propertyclipClip configuration for Tree View.propertypaddingPadding configuration for Tree View.propertywidthWidth configuration for Tree View.propertyheightHeight configuration for Tree View.propertyempty_textEmpty text configuration for Tree View.propertyenabledEnabled configuration for Tree View.propertybackgroundBackground configuration for Tree View.propertyheader_backgroundHeader background configuration for Tree View.propertycell_backgroundCell background configuration for Tree View.propertyalternate_backgroundAlternate background configuration for Tree View.propertyselected_backgroundSelected background configuration for Tree View.propertyforegroundForeground configuration for Tree View.propertyheader_foregroundHeader foreground configuration for Tree View.propertyselected_foregroundSelected foreground configuration for Tree View.propertymutedMuted configuration for Tree View.propertyaccentAccent configuration for Tree View.propertygrid_colorGrid color configuration for Tree View.propertyborder_colorBorder color configuration for Tree View.propertyradiusRadius configuration for Tree View.propertyfont_familyFont family configuration for Tree View.propertyfont_sizeFont size configuration for Tree View.propertyheader_sizeHeader size configuration for Tree View.propertyaccessible_nameAccessible name configuration for Tree View.propertyvisibleVisible configuration for Tree View.propertyShow 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.
↗
cell_clickNative event payload↗
cell_double_clickNative event payload↗
activateNative event payload↗
selection_changeNative event payload↗
current_changeNative event payload↗
editNative event payload↗
expandNative event payload↗
collapseNative event payload↗
expanded_changeNative event payload↗
row_count_changeNative event payload↗
column_count_changeNative event payload↗
scrollNative event payload↗
movement_startNative event payload↗
movement_endNative event payload↗
showNative event payload↗
hideNative event payload↗
focusNative event payload↗
blurNative event payload