C

ModuleFiles.directory

Adds a directory containing the QML module files.

Description

This node can be used to add a directory containing the QML module files. If the module files are spread across different directories, list each directory separately using an ModuleFiles node.

Note: The directory node can be combined with the files node in a ModuleFiles node. Prefer explicit inclusion of files using the files property.

Warning: Assets placed in subdirectories are not 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:

ModuleFiles {
    directory: "."
}

Since

This property was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.