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
qqmlmoduleregistration.h
Go to the documentation of this file.
1// Copyright (C) 2019 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// Qt-Security score:significant
4
5#ifndef QQMLMODULEREGISTRATION_H
6#define QQMLMODULEREGISTRATION_H
7
8#include <QtQml/qtqmlglobal.h>
9
10QT_BEGIN_NAMESPACE
11
12struct QQmlModuleRegistrationPrivate;
13class Q_QML_EXPORT QQmlModuleRegistration
14{
15 Q_DISABLE_COPY_MOVE(QQmlModuleRegistration)
16public:
17 QQmlModuleRegistration(const char *uri, void (*registerFunction)());
18 ~QQmlModuleRegistration();
19
20#if QT_DEPRECATED_SINCE(6, 0)
21 QT_DEPRECATED_X("Use registration without major version")
22 QQmlModuleRegistration(const char *uri, int majorVersion, void (*registerFunction)());
23#endif
24
25private:
26 QQmlModuleRegistrationPrivate *d = nullptr;
27};
28
29QT_END_NAMESPACE
30
31#endif // QQMLMODULEREGISTRATION_H