C

SafePicture QML Type

Provides a safety-critical QML picture 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

SafePicture is an indicator that displays a colorized scalable vector picture. Qt Safe Renderer's output verification can ensure the integrity of a safe item from the display content.

Note: Qt Safe Renderer is currently in Technical Preview status for Qt Quick Ultralite. A full Qt Safe Renderer support for Qt Quick Ultralite comes in the QSR 2.2 release.

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

SafePicture {
    id: handbrake
    objectName: "handbrake"
    source: "images/iso_grs_7000_4_0238.dat"
    color: "#e41e25"
    fillColor: "#000000"
    width: 30
    height: 30
}

Note: objectName is mandatory and it must be a string matching the item id.

See also Qt Quick Ultralite application with safety-critical items.

Property Documentation

color : color

This property holds the color of the indicator. The default value is "black".


fillColor : color

This property holds the fillColor that the indicator is drawn into. It is basically a very local background color for the indicator. The default value is "transparent".

Note: If you are using the output verification feature, do not use the default value "transparent". Instead, define an opaque background color.


height : real

This property holds the picture 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 specifies the source of the icon to use. The source must point to a file that contains QPicture data. For example:

SafePicture {
    source:  "images/iso_grs_7000_4_0238.dat"
    ...
}

width : real

This property holds the picture width. The default value is 64.


x : real

This property holds the x-coordinate position of the picture.


y : real

This property holds the y-coordinate position of the picture.


Available under certain Qt licenses.
Find out more.