Adds a directory containing the QML module files.


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. This property might be removed from future releases. Prefer explicit inclusion of files using the files property.

Warning: Assets placed in subdirectories are not included.


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

Code example:

ModuleFiles {
    directory: "."


This property was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.