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
qgenericplugin.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// Qt-Security score:significant reason:default
4
5#ifndef QGENERICPLUGIN_H
6#define QGENERICPLUGIN_H
7
8#include <QtGui/qtguiglobal.h>
9#include <QtCore/qplugin.h>
10#include <QtCore/qfactoryinterface.h>
11
13
14#define QGenericPluginFactoryInterface_iid "org.qt-project.Qt.QGenericPluginFactoryInterface"
15
16class Q_GUI_EXPORT QGenericPlugin : public QObject
17{
18 Q_OBJECT
19public:
20 explicit QGenericPlugin(QObject *parent = nullptr);
21 ~QGenericPlugin();
22
23 virtual QObject* create(const QString& name, const QString &spec) = 0;
24};
25
26QT_END_NAMESPACE
27
28#endif // QGENERICPLUGIN_H
\inmodule QtGui
Combined button and popup list for selecting options.