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"

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.