Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qsharedimageplugin.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 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 <QtLabsSharedImage/private/qtlabssharedimageglobal_p.h>
5#include <QtLabsSharedImage/private/qsharedimageprovider_p.h>
6
8#include <qqmlengine.h>
9
11
13{
16public:
18 {
21 }
22
23 void initializeEngine(QQmlEngine *engine, const char *uri) override
24 {
25 Q_UNUSED(uri);
26 engine->addImageProvider("shared", new SharedImageProvider);
27 }
28};
29
31
32#include "qsharedimageplugin.moc"
\inmodule QtCore
Definition qobject.h:90
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:311
The QQmlEngineExtensionPlugin class provides an abstract base for custom QML extension plugins.
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
void initializeEngine(QQmlEngine *engine, const char *uri) override
Initializes the extension from the uri using the engine.
QtQuickSharedImagePlugin(QObject *parent=nullptr)
Combined button and popup list for selecting options.
#define QQmlEngineExtensionInterface_iid
static const QQmlModuleRegistration registration("QtQml", qml_register_types_QtQml)
QT_BEGIN_NAMESPACE void Q_LABSSHAREDIMAGE_PRIVATE_EXPORT qml_register_types_Qt_labs_sharedimage()
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
#define Q_UNUSED(x)
QJSEngine engine
[0]