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
4
#
include
"qohosprintersupport.h"
5
#
include
<
qpa
/
qplatformprintplugin
.
h
>
6
7
QT_BEGIN_NAMESPACE
8
9
class
QOhosPrinterSupportPlugin
:
public
QPlatformPrinterSupportPlugin
10
{
11
Q_OBJECT
12
Q_PLUGIN_METADATA(IID QPlatformPrinterSupportFactoryInterface_iid FILE
"ohos.json"
)
13
14
public
:
15
QPlatformPrinterSupport
*
create
(
const
QString
&);
16
};
17
18
QPlatformPrinterSupport *
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
25
QT_END_NAMESPACE
26
27
#
include
"main.moc"
QOhosPrinterSupportPlugin
Definition
main.cpp:10
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
printsupport
ohos
main.cpp
Generated on
for Qt by
1.16.1