Display, content, and media
Native Qt
Vector Image
Vector Image is a native Zui component in the display, content, and media catalog, with 10 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.
vector_image "assets/architecture.svg", width: 520, height: 300, fill_mode: :preserve_aspect_fit
API
Component properties
10 component-specific values, plus shared item and layout properties.
sourceSource configuration for Vector Image.propertywidthWidth configuration for Vector Image.propertyheightHeight configuration for Vector Image.propertyfill_modeFill mode configuration for Vector Image.propertyrendererRenderer configuration for Vector Image.propertytrustedTrusted configuration for Vector Image.propertyasynchronous_shapesAsynchronous shapes configuration for Vector Image.propertyanimation_loopsAnimation loops configuration for Vector Image.propertyanimation_pausedAnimation paused configuration for Vector Image.propertyvisibleVisible configuration for Vector Image.propertyShow 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.
↗
source_changeNative event payload