zui docs v0.0.5
GitHub ↗
Animation, state, and timing Native Qt

Behavior

Behavior is a native Zui component in the animation, state, and timing catalog, with 8 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.

Ruby
tile = rectangle width: 80, height: 80, color: "#b7ff5a"
behavior tile, property: :opacity, value: 1.0, duration: 240, easing: :in_out_quad
API

Component properties

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

targetTarget configuration for Behavior.property
propertyProperty configuration for Behavior.property
valueValue configuration for Behavior.property
animationAnimation configuration for Behavior.property
durationDuration configuration for Behavior.property
easingEasing configuration for Behavior.property
enabledEnabled configuration for Behavior.property
visibleVisible configuration for Behavior.property
Show 15 shared item properties
opacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

changeNative event payload
finishNative event payload