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
qxcbglintegrationplugin.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 QXCBGLINTEGRATIONPLUGIN_H
5#define QXCBGLINTEGRATIONPLUGIN_H
6
7#include "qxcbexport.h"
8#include <QtCore/qplugin.h>
9#include <QtCore/qfactoryinterface.h>
10
12
13#define QXcbGlIntegrationFactoryInterface_iid "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5"
14
16
18{
20public:
21 explicit QXcbGlIntegrationPlugin(QObject *parent = nullptr)
22 : QObject(parent)
23 { }
24
25 virtual QXcbGlIntegration *create() = 0;
26 // the pattern expected by qLoadPlugin calls for a QString argument.
27 // we don't need it, so don't bother subclasses with it:
28 QXcbGlIntegration *create(const QString &) { return create(); }
29};
31
32#endif //QXCBGLINTEGRATIONPLUGIN_H
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
virtual QXcbGlIntegration * create()=0
QXcbGlIntegration * create(const QString &)
QXcbGlIntegrationPlugin(QObject *parent=nullptr)
Combined button and popup list for selecting options.
#define Q_OBJECT
#define Q_XCB_EXPORT
Definition qxcbexport.h:14