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
\title QML Namespaces
6
\brief Description of QML Namespaces
7
8
A QML Namespace is a special kind of type that only exposes enumerations and cannot
9
be 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
12
QML namespaces can be used to
13
\l{qtqml-cppintegration-definetypes.html#value-types-with-enumerations}{extract enumerations}
14
from other types.
15
16
*/
qtdeclarative
src
qml
doc
src
qmllanguageref
typesystem
namespaces.qdoc
Generated on
for Qt by
1.14.0