Use this node to declare a qmlproject file as a module. Modules can provide assets, interfaces, QML components and translations. A qmlproject-based project can make use of a qmlproject-based module by use of the ModuleFiles node.

Note: A qmlproject file can contain one instance of the MCU.Module node.


// mymodule.qmlproject
import QmlProject 1.3
Project {
  MCU.Module {
    uri: "custom.module"
  QmlFiles {
    files: ["CustomBox.qml"]

// CustomBox.qml
// ... some qml code

// main.qmlproject
import QmlProject 1.3
Project {
  QmlFiles {
    files: ["main.qml"]
  ModuleFiles {
    files: ["mymodule.qmlproject"]

// main.qml
import QtQuick 2.15
import custom.module
Rectangle {
  CustomBox {}

Qul Modules

Qul comes with 3 predefined modules than can be used by qml projects: Shapes, Timeline and Controls.


This node was introduced in QmlProject API 1.3 .

See also ModuleFiles.

Available under certain Qt licenses.
Find out more.