C

Project.importPaths

A list of paths containing .qmlproject files for modules required by the project.

Description

This property is an alternative to the ModuleFiles node for importing modules into a project.

The specified paths are searched for .qmlproject files describing a valid module, which are added to the project.

Note: Only .qmlproject files containing an MCU.Module node are included, all other contents are ignored.

Usage

This property is accepted in the main application .qmlproject file, or a module .qmlproject file. It takes a list of non-empty strings.

Code example:

Project {
    importPaths: ["modules"]
}

Since

This property was introduced in QmlProject API 1.3 .

See also ModuleFiles.

Available under certain Qt licenses.
Find out more.