Picture QML Type
An indicator that displays a colorized QPicture icon 更多...
Import Statement: | import QtQuick.Extras 1.4 |
开始支持版本: | QtQuick.Extras 1.4 |
属性
详细描述
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.
属性
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"