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) 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
6
#
include
<
qpa
/
qplatformintegrationplugin
.
h
>
7
#
include
"qoffscreenintegration.h"
8
9
QT_BEGIN_NAMESPACE
10
11
using
namespace
Qt::StringLiterals;
12
13
class
QOffscreenIntegrationPlugin
:
public
QPlatformIntegrationPlugin
14
{
15
Q_OBJECT
16
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"offscreen.json"
)
17
public
:
18
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&)
override
;
19
};
20
21
QPlatformIntegration *
QOffscreenIntegrationPlugin
::create(
const
QString& system,
const
QStringList& paramList)
22
{
23
if
(!system.compare(
"offscreen"_L1
, Qt::CaseInsensitive))
24
return
QOffscreenIntegration::createOffscreenIntegration(paramList);
25
26
return
nullptr
;
27
}
28
29
QT_END_NAMESPACE
30
31
#
include
"main.moc"
QOffscreenIntegrationPlugin
Definition
main.cpp:14
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
platforms
offscreen
main.cpp
Generated on
for Qt by
1.16.1