C

SafeImage QML Type

Provides a QML Image type which can be rendered in the Qt Safe Renderer runtime. More...

Import Statement: import QtSafeRenderer 1.0

Properties

Detailed Description

On build time, SafeImage objects are prerendered to Safe Renderer image format. The SafeImage object communicates the scene position changes to Safe Renderer runtime. For that purpose, a unique objectName property must be set.

SafeImage supports the same image formats as QImage. For more information, see Reading and Writing Image Files.

The following code provides an example how to use the SafeImage type:

SafeImage {
    id: safeImage1
    objectName: "safeImage1"
    source: "indicator1.png"
    width: 64
    height: 64
    x: 321
    y: 123
}

Property Documentation

source : url

Image can handle any image format supported by Qt, loaded from any URL scheme supported by Qt.

The URL may be absolute, or relative to the URL of the component.


Available under certain Qt licenses.
Find out more.