C
SafeImage QML Type
Provides a safety-critical QML image type that can be validated using Qt Safe Renderer's output verification. More...
Import Statement: | import QtQuickUltralite.SafeRenderer |
Since: | Qt Quick Ultralite 2.9 |
Properties
Detailed Description
SafeImage is an image type which integrity can be verified from the display content with Qt Safe Renderer's output verification.
SafeImage supports the same image formats as Image.
First, add SafeImage to the QML application:
import QtQuickUltralite.SafeRenderer SafeImage { id: drive objectName: "drive" width: 40 height: 50 x: 70 y: 70 source: "images/drive.png" fillColor: "#000000" }
See also Qt Quick Ultralite application with safety-critical items.
Property Documentation
fillColor : color |
This property holds the background fill color of the item. It only has meaning if the image is not fully opaque, otherwise it has no other effect. The default value is "transparent".
Note: If you are using output verification feature, you should not use the default value "transparent". Instead, define an opaque background color.
height : real |
This property holds the image's height. The default value is 64.
opacity : real |
This property holds the opacity of the item. Opacity is specified as a number between 0.0 (fully transparent) and 1.0 (fully opaque). The default value is 1.0.
source : string |
This property holds the resource locator of the image. Image can handle any image format supported by Qt, loaded from any URL scheme supported by Qt.
SafeImage accepts an absolute resource URI, for example "images/drive.png".
Note: Resource URI must be lower-case.
width : real |
This property holds the image's width. The default value is 64
.
x : real |
This property holds the x-coordinate in the image's position.
y : real |
This property holds the y-coordinate in the image's position.
Available under certain Qt licenses.
Find out more.