C
SafePicture QML Type
Provides a QML Picture type which can be rendered in the Qt Safe Renderer runtime. More...
Import Statement: | import Qt.SafeRenderer |
Properties
- color : color
- fillColor : color
- height : real
- objectName : string
- opacity : real
- source : url
- width : real
- x : real
- y : real
Detailed Description
SafePicture is an indicator that displays the colorized scalable vector QPicture in the Safe Renderer runtime.
The following code provides an example how to use the SafePicture type:
SafePicture { id: iconCoolant objectName: "iconCoolant" width: 30 height: 30 color: "#e41e25" fillColor: "white" // optional, but recommended to use fillColor for controlled background color source: "qrc:/iso-icons/iso_grs_7000_4_2426.dat" }
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 output verification feature, you should not use the default value "transparent". Instead, define an opaque background color. For more information, see Qt Safe Renderer Output Verification.
height : real |
This property holds the picture's height. The default value is 64
.
objectName : string |
This property holds the QObject::objectName for this specific object instance.
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. For more information, see Opacity Property.
source : url |
This property specifies the URL of the icon to use. The URL must point to a file that contains QPicture data. For example:
source: "qrc:/iso-icons/iso_grs_7000_4_0238.dat"
width : real |
This property holds the picture's width. The default value is 64
.
x : real |
This property holds the x-coordinate in the picture's position.
y : real |
This property holds the y-coordinate in the picture's position.
Available under certain Qt licenses.
Find out more.