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
qqmlextensioninterface.h
Go to the documentation of this file.
1// Copyright (C) 2016 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#ifndef QQMLEXTENSIONINTERFACE_H
5#define QQMLEXTENSIONINTERFACE_H
6
7#include <QtQml/qtqmlglobal.h>
8#include <QtCore/qobject.h>
9
11
12
13class QQmlEngine;
14
16{
17public:
19 virtual void registerTypes(const char *uri) = 0;
20};
21
23{
24public:
26 virtual void initializeEngine(QQmlEngine *engine, const char *uri) = 0;
27};
28
30{
31public:
33 virtual void initializeEngine(QQmlEngine *engine, const char *uri) = 0;
34};
35
36#define QQmlTypesExtensionInterface_iid "org.qt-project.Qt.QQmlTypesExtensionInterface"
37Q_DECLARE_INTERFACE(QQmlTypesExtensionInterface, "org.qt-project.Qt.QQmlTypesExtensionInterface/1.0")
38
39// NOTE: When changing this to a new version and deciding to add backup code to
40// continue to support the previous version, make sure to support both of these iids.
41#define QQmlExtensionInterface_iid "org.qt-project.Qt.QQmlExtensionInterface/1.0"
42#define QQmlExtensionInterface_iid_old "org.qt-project.Qt.QQmlExtensionInterface"
43
45
46#define QQmlEngineExtensionInterface_iid "org.qt-project.Qt.QQmlEngineExtensionInterface"
48
50
51#endif // QQMLEXTENSIONINTERFACE_H
virtual void initializeEngine(QQmlEngine *engine, const char *uri)=0
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
virtual void initializeEngine(QQmlEngine *engine, const char *uri)=0
~QQmlExtensionInterface() override
virtual void registerTypes(const char *uri)=0
virtual ~QQmlTypesExtensionInterface()
Combined button and popup list for selecting options.
#define Q_DECLARE_INTERFACE(IFace, IId)
Definition qobject.h:460
#define QQmlEngineExtensionInterface_iid
#define QQmlExtensionInterface_iid
QJSEngine engine
[0]