Navigation and structure
Container
Native Qt
Swipe View
Swipe View is a native Zui container in the navigation and structure catalog, with 12 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.
swipe_view current_index: 0, orientation: :horizontal, interactive: true do
page("Today") { text "Today" }
page("Tomorrow") { text "Tomorrow" }
end
API
Component properties
12 component-specific values, plus shared item and layout properties.
current_indexCurrent index configuration for Swipe View.propertyorientationOrientation configuration for Swipe View.propertyinteractiveInteractive configuration for Swipe View.propertywidthWidth configuration for Swipe View.propertyheightHeight configuration for Swipe View.propertyenabledEnabled configuration for Swipe View.propertybackgroundBackground configuration for Swipe View.propertyborder_colorBorder color configuration for Swipe View.propertyradiusRadius configuration for Swipe View.propertyclipClip configuration for Swipe View.propertylayout_directionLayout direction configuration for Swipe View.propertyvisibleVisible configuration for Swipe 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.
↗
inputNative event payload↗
changeNative event payload↗
count_changeNative event payload↗
showNative event payload↗
hideNative event payload↗
focusNative event payload↗
blurNative event payload