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
5namespace Foo
6{
7 struct MyInterface { ... };
8}
9
10Q_DECLARE_INTERFACE(Foo::MyInterface, "org.examples.MyInterface")
12
13
14
15class MyInstance : public QObject
16{
17 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDummyPlugin" FILE "mymetadata.json")
18};
20
21
23Q_IMPORT_PLUGIN(qjpeg)
\inmodule QtCore
Definition qobject.h:103
#define Q_DECLARE_INTERFACE(IFace, IId)
Definition qobject.h:460
#define Q_IMPORT_PLUGIN(PLUGIN)
Definition qplugin.h:194
#define Q_PLUGIN_METADATA(x)