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) 2021 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
<
qpa
/
qplatformintegrationplugin
.
h
>
5
#
include
"qvkkhrdisplayintegration.h"
6
7
QT_BEGIN_NAMESPACE
8
9
using
namespace
Qt::StringLiterals;
10
11
class
QVkKhrDisplayIntegrationPlugin
:
public
QPlatformIntegrationPlugin
12
{
13
Q_OBJECT
14
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"vkkhrdisplay.json"
)
15
public
:
16
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&)
override
;
17
};
18
19
QPlatformIntegration *
QVkKhrDisplayIntegrationPlugin
::create(
const
QString &system,
const
QStringList ¶mList)
20
{
21
if
(!system.compare(
"vkkhrdisplay"_L1
, Qt::CaseInsensitive))
22
return
new
QVkKhrDisplayIntegration
(paramList);
23
24
return
nullptr
;
25
}
26
27
QT_END_NAMESPACE
28
29
#
include
"main.moc"
QVkKhrDisplayIntegrationPlugin
Definition
main.cpp:12
QVkKhrDisplayIntegration
Definition
qvkkhrdisplayintegration.h:18
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforms
vkkhrdisplay
main.cpp
Generated on
for Qt by
1.14.0