zui docs v0.0.5
GitHub ↗
Display, content, and media Native Qt

Animated Image

Animated Image is a native Zui component in the display, content, and media 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.

Ruby
animated_image "assets/activity.gif", width: 320, height: 180, playing: true
API

Component properties

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

sourceSource configuration for Animated Image.property
widthWidth configuration for Animated Image.property
heightHeight configuration for Animated Image.property
fill_modeFill mode configuration for Animated Image.property
playingPlaying configuration for Animated Image.property
pausedPaused configuration for Animated Image.property
speedSpeed configuration for Animated Image.property
asynchronousAsynchronous configuration for Animated Image.property
cacheCache configuration for Animated Image.property
mirrorMirror configuration for Animated Image.property
smoothSmooth configuration for Animated Image.property
visibleVisible configuration for Animated Image.property
Show 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.

frameNative event payload
loadedNative event payload
errorNative event payload
statusNative event payload