- Qt 6.9
- Qt Qml
- The QML Reference
- The QML Type System
- QML Namespaces
- Qt 6.9.3 Reference Documentation

QML Enumerations ◦ QML Modules

# QML Namespaces

A QML Namespace is a special kind of type that only exposes enumerations and cannot be instantiated. A namespace can only be declared in C++, using the QML_ELEMENT or QML_NAMED_ELEMENT macro inside a C++ namespace marked with Q_NAMESPACE.

QML namespaces can be used to extract enumerations from other types.