Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
plugin.mm
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
4#include <qpa/qplatformintegrationplugin.h>
5#include <qpa/qplatformthemeplugin.h>
6#include "qiosintegration.h"
7
9
10using namespace Qt::StringLiterals;
11
19
21{
22 Q_UNUSED(paramList);
23 if (!system.compare("ios"_L1, Qt::CaseInsensitive)
24 || !system.compare("tvos"_L1, Qt::CaseInsensitive)) {
25 return new QIOSIntegration;
26 }
27
28 return 0;
29}
30
32
33#include "plugin.moc"
34
35// Dummy function that we explicitly tell the linker to look for,
36// so that the plugin's static initializer is included and run.
37extern "C" void qt_registerPlatformPlugin() {}
38
QPlatformIntegration * create(const QString &, const QStringList &)
Definition plugin.mm:20
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
int compare(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
Definition qstring.cpp:6664
Combined button and popup list for selecting options.
@ CaseInsensitive
QT_END_NAMESPACE void qt_registerPlatformPlugin()
Definition plugin.mm:37
#define QPlatformIntegrationFactoryInterface_iid
#define Q_IMPORT_PLUGIN(PLUGIN)
Definition qplugin.h:194
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
#define Q_UNUSED(x)
view create()