C

QmlFiles.directory

Use it to add a directory where the application's QML files live.

Description

You can use this node to list a directory containing the QML files, instead of listing all the QML file using the "files" node. It is convenient alternative to add the QML sources, if all the files live in a single directory. If the QML sources are spread across different directories, use several QmlFiles node to list them.

Note: A QmlFiles node can contain one instance of "files" or "directory" nodes, or both. This property might be removed from future releases. Prefer explicit inclusion of files using the files property.

qmlprojectexporter scans the given directory for QML files, and adds them to the list of QML sources. It scans the directory for QML files and ignores the subdirectories in it. You can use several QmlFiles node to list all the directories that contain the QML sources.

Usage

QmlFiles {
    directory: "custom/"
}

Since

This property was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.