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.1

Properties

Detailed Description

On build time, SafeImage objects are prerendered to Safe Renderer image format.

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

x : real

y : real

width : real

height : real

Defines the image's position and size. The default value is 0.


objectName : string

This property holds the QObject::objectName for this specific object instance.


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.