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
main.cpp
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#include <QtGui/qgenericplugin.h>
5#include <QtInputSupport/private/qlibinputhandler_p.h>
6
8
10{
13
14public:
15 QObject *create(const QString &key, const QString &specification) override;
16};
17
18QObject *QLibInputPlugin::create(const QString &key, const QString &specification)
19{
20 if (!key.compare(QLatin1String("libinput"), Qt::CaseInsensitive))
21 return new QLibInputHandler(key, specification);
22
23 return nullptr;
24}
25
27
28#include "main.moc"
\inmodule QtGui
QObject * create(const QString &key, const QString &specification) override
Implement this function to create a driver matching the type specified by the given key and specifica...
Definition main.cpp:18
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
@ CaseInsensitive
#define QGenericPluginFactoryInterface_iid
GLuint64 key
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
view create()