Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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\meta {keywords} {qmltopic}
6\title QML Namespaces
7\brief Description of QML Namespaces
8
9A QML Namespace is a special kind of type that only exposes enumerations and cannot
10be instantiated. A namespace can only be declared in C++, using the \l QML_ELEMENT or
11\l QML_NAMED_ELEMENT macro inside a C++ namespace marked with \l{Q_NAMESPACE}.
12
13QML namespaces can be used to
14\l{qtqml-cppintegration-definetypes.html#value-types-with-enumerations}{extract enumerations}
15from other types.
16
17*/