Qt 6.x
The Qt SDK
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
8
10{
13public:
14 QPlatformIntegration *create(const QString &, const QStringList &) override;
15};
16
18{
19 Q_UNUSED(paramList);
20 if (!system.compare(QStringLiteral("wasm"), Qt::CaseInsensitive))
21 return new QWasmIntegration;
22
23 return nullptr;
24}
25
27
28#include "main.moc"
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
int compare(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
Definition qstring.cpp:6498
QPlatformIntegration * create(const QString &, const QStringList &) override
Definition main.cpp:17
Combined button and popup list for selecting options.
@ CaseInsensitive
#define QPlatformIntegrationFactoryInterface_iid
#define QStringLiteral(str)
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
#define Q_UNUSED(x)
view create()