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. Prefer explicit inclusion of files using the files
property.
Warning: Resources placed in subdirectories are not included.
Warning: Use carefully as every file from the directory will be included.
Warning: The build system might not be able to track file changes when using directory-property.
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.