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
qohosplatformplugin.cpp
Go to the documentation of this file.
1// Copyright (C) 2025 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>
6#include <QDebug>
7#include <qohosjsenv_p.h>
8
10
12{
13 Q_OBJECT
14 Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "ohos.json")
15public:
17};
18
19QPlatformIntegration *QOhosPlatformIntegrationPlugin::create(const QString &key, const QStringList &paramList)
20{
21 auto __dbg = make_QCScopedDebug("QOhosPlatformIntegrationPlugin::create");
22 Q_UNUSED(paramList);
23 if (key.compare(QLatin1String("ohos"), Qt::CaseInsensitive) == 0) {
24 auto __dbg = make_QCScopedDebug("QOhosPlatformIntegrationPlugin::create creating ");
25 return new QOhosPlatformIntegration(paramList);
26 }
27 return 0;
28}
29
30QT_END_NAMESPACE
31#include "qohosplatformplugin.moc"
Combined button and popup list for selecting options.