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) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#
include
<
qpa
/
qplatformintegrationplugin
.
h
>
5
#
include
"qwasmintegration.h"
6
7
QT_BEGIN_NAMESPACE
8
9
using
namespace
Qt::Literals::StringLiterals;
10
11
class
QWasmIntegrationPlugin
:
public
QPlatformIntegrationPlugin
12
{
13
Q_OBJECT
14
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"wasm.json"
)
15
public
:
16
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&)
override
;
17
};
18
19
QPlatformIntegration *
QWasmIntegrationPlugin
::create(
const
QString& system,
const
QStringList& paramList)
20
{
21
Q_UNUSED(paramList);
22
if
(!system.compare(
"wasm"_L1
, Qt::CaseInsensitive))
23
return
new
QWasmIntegration
;
24
25
return
nullptr
;
26
}
27
28
QT_END_NAMESPACE
29
30
#
include
"main.moc"
QWasmIntegrationPlugin
Definition
main.cpp:12
QWasmIntegration
Definition
qwasmintegration.h:41
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qtbase
src
plugins
platforms
wasm
main.cpp
Generated on Mon Mar 10 2025 00:41:08 for Qt by
1.13.2