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
main.cpp
Go to the documentation of this file.
1
// Copyright (C) 2014 Robin Burchell <robin.burchell@viroteck.net>
2
// Copyright (C) 2016 The Qt Company Ltd.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#
include
<
QtGui
/
qgenericplugin
.
h
>
6
#
include
<
QCoreApplication
>
7
8
#
include
"qtuiohandler_p.h"
9
10
QT_BEGIN_NAMESPACE
11
12
class
QTuioTouchPlugin
:
public
QGenericPlugin
13
{
14
Q_OBJECT
15
Q_PLUGIN_METADATA(IID QGenericPluginFactoryInterface_iid FILE
"tuiotouch.json"
)
16
17
public
:
18
QTuioTouchPlugin
();
19
20
QObject
*
create
(
const
QString &key,
const
QString &specification)
override
;
21
};
22
23
QTuioTouchPlugin
::QTuioTouchPlugin()
24
{
25
}
26
27
QObject
*
QTuioTouchPlugin
::
create
(
const
QString &key,
28
const
QString &spec)
29
{
30
if
(!key.compare(QLatin1String(
"TuioTouch"
), Qt::CaseInsensitive))
31
return
new
QTuioHandler
(spec);
32
33
return
nullptr
;
34
}
35
36
QT_END_NAMESPACE
37
38
#
include
"main.moc"
QTuioHandler
Definition
qtuiohandler_p.h:24
QTuioTouchPlugin
Definition
main.cpp:13
QTuioTouchPlugin::create
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:27
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
generic
tuiotouch
main.cpp
Generated on
for Qt by
1.14.0