Picture QML Type

An indicator that displays a colorized QPicture icon. More...

Import Statement: import QtQuick.Extras 1.4
Since: QtQuick.Extras 1.4

Properties

Detailed Description

Picture displays icons in a scalable vector format. It can also colorize the icons via the color property.

The icon to display is set with the source property.

For example, if you have access to the ISO 7000 icons that come with Qt Enterprise, you can specify the following URL:

 "qrc:/iso-icons/iso_grs_7000_4_0001.dat"

Due to the large selection of icons available in this package, it is advisable to use Qt Creator's Qt Quick Designer tool to browse and select icons, as this property will then be set automatically.

Property Documentation

color : color

This property specifies the color of the indicator.

The default value is "black".


source : url

This property specifies the URL of the icon to use. The URL must point to a local file that contains QPicture data. For example:

 "mypicture.dat"