VectorImage QML Type

Loads a vector image file and displays it in a Qt Quick scene. More...

Import Statement: import QtQuick.VectorImage
Since: Qt 6.8

Properties

Detailed Description

The VectorImage can be used to load a vector image file and display this as an item in a Qt Quick scene. It currently supports the SVG file format.

Note: This complements the approach of loading the vector image file through an Image element: Image creates a raster version of the image at the requested size. VectorImage builds a Qt Quick scene that represents the image. This means the resulting item can be scaled and rotated without losing quality, and it will typically consume less memory than the rasterized version.

Property Documentation

source : url

This property holds the URL of the vector image file to load.

VectorImage currently only supports the SVG file format.


© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.