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.mm
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 "qmacstyle_mac_p.h"
6
7#include <QtCore/private/qcore_mac_p.h>
8
10
12{
14 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "macstyle.json")
15public:
16 QStyle *create(const QString &key);
17};
18
20{
22 if (key.compare(QLatin1String("macos"), Qt::CaseInsensitive) == 0)
23 return new QMacStyle();
24
25 return 0;
26}
27
29
30#include "main.moc"
31
QStyle * create(const QString &key)
Creates and returns a QStyle object for the given style key.
Definition main.mm:19
\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()