C

ImageFiles.directory

Description

The directory property adds a directory containing the image assets. If the image assets are spread across different directories, each directory needs to be provided in a separate ImageFiles node.

Note: The directory property can be combined with the files property in a ImageFiles node. This property might be removed from future releases. Prefer explicit inclusion of files using the files property.

Warning: Images placed in subdirectories are not included.

Usage

This property is accepted in any context where its parent node is accepted. It takes a string.

Code example:

ImageFiles {
    directory: "Images/extra"
}

Since

This property was introduced in QmlProject API 1.3 .

See also ImageFiles.files.

Available under certain Qt licenses.
Find out more.