C

ImageFiles.files

List the image assets to be added to the project.

Description

The files property is a list of strings. Each element of the list is the path to an image file. All formats accepted by Qt are accepted by Qul as well, including but not limited to png, jpeg, and svg. Paths relative to the project path are accepted, as well as absolute paths.

The path for an image is used as a URI to identify the image from within the QML code. If the URI identifier needs to be different than the path, the ImageFiles.MCU.base and ImageFiles.MCU.prefix properties can be used.

Usage

ImageFiles {
    files: ["images/one.png", "two.png"]
}

Since

This property was introduced in QmlProject API 1.3 .

See also ImageFiles.MCU.prefix, ImageFiles.MCU.base, and ImageFiles.directory.

Available under certain Qt licenses.
Find out more.