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
qstyleplugin.h
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant reason:default
4
5#ifndef QSTYLEPLUGIN_H
6#define QSTYLEPLUGIN_H
7
8#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtCore/qplugin.h>
10#include <QtCore/qfactoryinterface.h>
11
13
14
15class QStyle;
16
17#define QStyleFactoryInterface_iid "org.qt-project.Qt.QStyleFactoryInterface"
18
19class Q_WIDGETS_EXPORT QStylePlugin : public QObject
20{
21 Q_OBJECT
22public:
23 explicit QStylePlugin(QObject *parent = nullptr);
24 ~QStylePlugin();
25
26 virtual QStyle *create(const QString &key) = 0;
27};
28
29QT_END_NAMESPACE
30
31#endif // QSTYLEPLUGIN_H
The QStylePlugin class provides an abstract base for custom QStyle plugins.
Q_GLOBAL_STATIC_WITH_ARGS(PermissionStatusHash, g_permissionStatusHash,({ { qMetaTypeId< QCameraPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QMicrophonePermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QBluetoothPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QContactsPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QCalendarPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QLocationPermission >(), Qt::PermissionStatus::Undetermined } }))
#define QStyleFactoryInterface_iid