C

BinaryFiles.directory

Description

The directory property adds a directory containing the binary resources. If the binary resources are spread across different directories, each directory needs to be provided in a separate BinaryFiles node.

Note: The directory property can be combined with the files property in a BinaryFiles 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:

BinaryFiles {
    directory: "data/extra"
}

Since

This property was introduced in Qt Quick Ultralite 2.9.

See also BinaryFiles.files.

Available under certain Qt licenses.
Find out more.