Foundation and layout
Container
Native Qt
Stack Layout
Stack Layout is a native Zui container in the foundation and layout catalog, with 4 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.
stack_layout current_index: 1, width: 520, height: 280 do
page("Overview") { text "Overview content" }
page("Activity") { text "Activity content" }
end
API
Component properties
4 component-specific values, plus shared item and layout properties.
current_indexCurrent index configuration for Stack Layout.propertywidthWidth configuration for Stack Layout.propertyheightHeight configuration for Stack Layout.propertyvisibleVisible configuration for Stack Layout.propertyShow 14 shared item properties
enabledopacityscalerotationzfill_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