C

InterfaceFiles.MCU.qmlImports

Description

This property can be used to list the QML modules to be imported into the project. This enables the C++ interfaces to refer to the components offered by the imported QML modules. In addition, each QML module import URI in the list is added to the imports section of the generated QML file.

Usage

This property is accepted in any context where its parent node is accepted. It takes a list of non-empty strings.

Code example:

InterfaceFiles {
    MCU.qmlImports: ["Personal.Constants", "Personal.Util"]
}

Since

This property was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.