Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlmetamoduleregistration.cpp
Go to the documentation of this file.
1
// Copyright (C) 2022 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#include <private/qtqmlglobal_p.h>
5
#include <
qqmlmoduleregistration.h
>
6
#include <
qqml.h
>
7
8
QT_BEGIN_NAMESPACE
9
10
// Provide the type registration for QtQml here, in libQtQml.so.
11
// This way we get a completely functional QtQml module and don't have to
12
// rely on the plugin to be loaded.
13
// In CMakeLists.txt we've specified NO_GENERATE_QMLTYPES to prevent
14
// the generation of an extra type registration file.
15
Q_QML_PRIVATE_EXPORT
void
qml_register_types_QtQml
()
16
{
17
// ### Qt7: Handle version 6 like version 2.
18
qmlRegisterModule
(
"QtQml"
, 2, 0);
19
qmlRegisterModule
(
"QtQml"
, 2, 254);
20
qmlRegisterModule
(
"QtQml"
, QT_VERSION_MAJOR, 0);
21
qmlRegisterModule
(
"QtQml"
, QT_VERSION_MAJOR, QT_VERSION_MINOR);
22
}
23
24
static
const
QQmlModuleRegistration
registration
(
"QtQml"
,
qml_register_types_QtQml
);
25
26
QT_END_NAMESPACE
QQmlModuleRegistration
Definition
qqmlmoduleregistration.h:13
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qmlRegisterModule
void qmlRegisterModule(const char *uri, int versionMajor, int versionMinor)
Definition
qqml.cpp:225
qqml.h
registration
static const QQmlModuleRegistration registration("QtQml", qml_register_types_QtQml)
qml_register_types_QtQml
QT_BEGIN_NAMESPACE Q_QML_PRIVATE_EXPORT void qml_register_types_QtQml()
Definition
qqmlmetamoduleregistration.cpp:15
qqmlmoduleregistration.h
qtdeclarative
src
qml
qml
qqmlmetamoduleregistration.cpp
Generated by
1.9.7