Picture QML Type

An indicator that displays a colorized QPicture icon 更多...

import 语句: import QtQuick.Extras 1.4
Since: QtQuick.Extras 1.4

特性

详细描述

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

The icon to display is set with the source 特性。

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.

特性文档编制

color : color

This property specifies the color of the indicator.

默认值为 "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"