Multimedia and capture
Native Qt
Sound Effect
Sound Effect is a native Zui component in the multimedia and capture 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.
sound_effect "assets/complete.ogg", volume: 0.7, playback: :play, command_revision: 1
API
Component properties
8 component-specific values, plus shared item and layout properties.
sourceSource configuration for Sound Effect.propertyloopsLoops configuration for Sound Effect.propertyvolumeVolume configuration for Sound Effect.propertymutedMuted configuration for Sound Effect.propertyplaybackPlayback configuration for Sound Effect.propertycommandCommand configuration for Sound Effect.propertycommand_revisionCommand revision configuration for Sound Effect.propertyvisibleVisible configuration for Sound Effect.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.
↗
playNative event payload↗
stopNative event payload↗
statusNative event payload↗
errorNative event payload↗
loops_remainingNative event payload