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
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 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 "qandroidstyle_p.h"
6
8
10{
12 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "androidstyle.json")
13public:
14 QStyle *create(const QString &key);
15};
16
18{
19 if (key.compare(QLatin1String("android"), Qt::CaseInsensitive) == 0)
20 return new QAndroidStyle();
21
22 return 0;
23}
24
26
27#include "main.moc"
28
QStyle * create(const QString &key)
Creates and returns a QStyle object for the given style key.
Definition main.cpp:17
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QStylePlugin class provides an abstract base for custom QStyle plugins.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
Definition qstyle.h:29
Combined button and popup list for selecting options.
@ CaseInsensitive
GLuint64 key
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
view create()