Animation, state, and timing
Native Qt
Timer
A declarative native timer for one-shot or repeating triggers.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
clock = timer 1_000, repeat: true, running: true
on clock, :trigger do
puts "Timer triggered"
end
API
Component properties
7 component-specific values, plus shared item and layout properties.
intervalInterval configuration for Timer.propertyrepeatRepeat configuration for Timer.propertyrunningRunning configuration for Timer.propertytriggered_on_startTriggered on start configuration for Timer.propertyrestartRestart configuration for Timer.propertyrevisionRevision configuration for Timer.propertyvisibleVisible configuration for Timer.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.
↗
triggerNative event payload↗
startNative event payload↗
stopNative event payload