Animation, state, and timing
Native Qt
Anchor Changes
Anchor Changes is a native Zui component in the animation, state, and timing catalog, with 5 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.
rectangle id: :frame, width: 420, height: 220
tile = rectangle width: 80, height: 80, color: "#b7ff5a"
anchor_changes tile, anchors: { horizontal_center: :frame, vertical_center: :frame }, margins: {}, revision: 1
API
Component properties
5 component-specific values, plus shared item and layout properties.
targetTarget configuration for Anchor Changes.propertyanchorsAnchors configuration for Anchor Changes.propertymarginsMargins configuration for Anchor Changes.propertyrevisionRevision configuration for Anchor Changes.propertyvisibleVisible configuration for Anchor Changes.propertyShow 16 shared item properties
enabledopacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction
Events
Subscribe with on widget, :event and keep behavior in Ruby.
↗
applyNative event payload