Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
namespaces.qdoc
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3/*!
4\page qtqml-typesystem-namespaces.html
5\title QML Namespaces
6\brief Description of QML Namespaces
7
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}.
11
12QML namespaces can be used to
13\l{qtqml-cppintegration-definetypes.html#value-types-with-enumerations}{extract enumerations}
14from other types.
15
16*/