W3cubDocs

/Qt 6.9

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.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qtqml-typesystem-namespaces.html