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
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
4#ifndef QGENERICPLUGIN_H
5#define QGENERICPLUGIN_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qplugin.h>
9#include <QtCore/qfactoryinterface.h>
10
12
13#define QGenericPluginFactoryInterface_iid "org.qt-project.Qt.QGenericPluginFactoryInterface"
14
15class Q_GUI_EXPORT QGenericPlugin : public QObject
16{
18public:
19 explicit QGenericPlugin(QObject *parent = nullptr);
21
22 virtual QObject* create(const QString& name, const QString &spec) = 0;
23};
24
26
27#endif // QGENERICPLUGIN_H
\inmodule QtGui
virtual QObject * create(const QString &name, const QString &spec)=0
Implement this function to create a driver matching the type specified by the given key and specifica...
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint name
#define Q_OBJECT