zui docs v0.0.5
GitHub ↗
Navigation and structure Container Native Qt

Stack View

A navigable stack of native pages with depth, push/pop, transition, and busy state.

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
stack_view current_index: 0, animated: true, width: 520, height: 320 do
  page("Overview") { text "First page" }
  page("Details") { text "Second page" }
end
API

Component properties

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

current_indexCurrent index configuration for Stack View.property
animatedAnimated configuration for Stack View.property
widthWidth configuration for Stack View.property
heightHeight configuration for Stack View.property
enabledEnabled configuration for Stack View.property
backgroundBackground configuration for Stack View.property
border_colorBorder color configuration for Stack View.property
radiusRadius configuration for Stack View.property
clipClip configuration for Stack View.property
visibleVisible configuration for Stack View.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.

changeNative event payload
pushNative event payload
popNative event payload
depth_changeNative event payload
busy_changeNative event payload
showNative event payload
hideNative event payload
focusNative event payload
blurNative event payload