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
doc_src_qplugin.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5
namespace
Foo
6
{
7
struct
MyInterface
{ ... };
8
}
9
10
Q_DECLARE_INTERFACE
(
Foo::MyInterface
,
"org.examples.MyInterface"
)
12
13
14
15
class
MyInstance
: public
QObject
16
{
17
Q_PLUGIN_METADATA
(
IID
"org.qt-project.Qt.QDummyPlugin"
FILE
"mymetadata.json"
)
18
};
20
21
23
Q_IMPORT_PLUGIN
(qjpeg)
MyInstance
[0]
Definition
doc_src_qplugin.cpp:16
QObject
\inmodule QtCore
Definition
qobject.h:103
Foo
[0]
Definition
doc_src_qplugin.cpp:6
Q_DECLARE_INTERFACE
#define Q_DECLARE_INTERFACE(IFace, IId)
Definition
qobject.h:460
Q_IMPORT_PLUGIN
#define Q_IMPORT_PLUGIN(PLUGIN)
Definition
qplugin.h:194
QtPluginMetaDataKeys::IID
@ IID
Q_PLUGIN_METADATA
#define Q_PLUGIN_METADATA(x)
Definition
qtmetamacros.h:54
Foo::MyInterface
Definition
doc_src_qplugin.cpp:7
qtbase
src
corelib
doc
snippets
code
doc_src_qplugin.cpp
Generated by
1.10.0