Animation, state, and timing
Native Qt
Uniform Animator
Uniform Animator is a native Zui component in the animation, state, and timing catalog, with 11 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.
effect = shader_effect "assets/shaders/reveal.frag.qsb", width: 420, height: 240
uniform_animator effect, uniform: :progress, from: 0.0, to: 1.0, duration: 600, running: true
API
Component properties
11 component-specific values, plus shared item and layout properties.
targetTarget configuration for Uniform Animator.propertyuniformUniform configuration for Uniform Animator.propertyfromFrom configuration for Uniform Animator.propertytoTo configuration for Uniform Animator.propertydurationDuration configuration for Uniform Animator.propertydelayDelay configuration for Uniform Animator.propertyeasingEasing configuration for Uniform Animator.propertyloopsLoops configuration for Uniform Animator.propertyrunningRunning configuration for Uniform Animator.propertypausedPaused configuration for Uniform Animator.propertyvisibleVisible configuration for Uniform Animator.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.
↗
startNative event payload↗
stopNative event payload↗
finishNative event payload↗
running_changeNative event payload