1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
4\page qtqml-typesystem-namespaces.html
6\brief Description of QML Namespaces
8A QML Namespace is a special kind of type that only exposes enumerations and cannot
9be instantiated. A namespace can only be declared in C++, using the \l QML_ELEMENT or
10\l QML_NAMED_ELEMENT macro inside a C++ namespace marked with \l{Q_NAMESPACE}.
12QML namespaces can be used to
13\l{qtqml-cppintegration-definetypes.html#value-types-with-enumerations}{extract enumerations}