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
<
QtWidgets
/
qstyleplugin
.
h
>
5
#
include
"qohosstyle_p.h"
6
7
QT_BEGIN_NAMESPACE
8
9
class
QOhosStylePlugin
:
public
QStylePlugin
10
{
11
Q_OBJECT
12
Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QStyleFactoryInterface"
FILE
"ohosstyle.json"
)
13
14
public
:
15
QStyle
*
create
(
const
QString
&
key
)
override
;
16
};
17
18
QStyle *
QOhosStylePlugin
::create(
const
QString &key)
19
{
20
if
(key.compare(QLatin1String(
"ohos"
), Qt::CaseInsensitive) == 0)
21
return
new
QOhosStyle();
22
23
return
nullptr
;
24
}
25
26
QT_END_NAMESPACE
27
28
#
include
"main.moc"
QOhosStylePlugin
Definition
main.cpp:10
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
styles
ohos
main.cpp
Generated on
for Qt by
1.16.1