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) 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
5#include <qpa/qplatformprintplugin.h>
6
8
10{
11 Q_OBJECT
12 Q_PLUGIN_METADATA(IID QPlatformPrinterSupportFactoryInterface_iid FILE "ohos.json")
13
14public:
16};
17
18QPlatformPrinterSupport *QOhosPrinterSupportPlugin::create(const QString &key)
19{
20 if (key.compare(key, QLatin1String("ohosprintersupport"), Qt::CaseInsensitive) == 0)
21 return new QOhosPrinterSupport;
22 return nullptr;
23}
24
25QT_END_NAMESPACE
26
27#include "main.moc"
Combined button and popup list for selecting options.