Display, content, and media
Native Qt
Image
A native raster image renderer with asynchronous loading, cache, transforms, and fill modes.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
image "assets/dashboard.png", width: 640, height: 360, fill_mode: :preserve_aspect_crop
API
Component properties
16 component-specific values, plus shared item and layout properties.
sourceSource configuration for Image.propertywidthWidth configuration for Image.propertyheightHeight configuration for Image.propertysource_widthSource width configuration for Image.propertysource_heightSource height configuration for Image.propertyfill_modeFill mode configuration for Image.propertyhorizontal_alignmentHorizontal alignment configuration for Image.propertyvertical_alignmentVertical alignment configuration for Image.propertyasynchronousAsynchronous configuration for Image.propertycacheCache configuration for Image.propertysmoothSmooth configuration for Image.propertymipmapMipmap configuration for Image.propertymirrorMirror configuration for Image.propertyauto_transformAuto transform configuration for Image.propertyretain_while_loadingRetain while loading configuration for Image.propertyvisibleVisible configuration for 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.
↗
progressNative event payload↗
statusNative event payload↗
loadedNative event payload↗
errorNative event payload