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
qiconengineplugin.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
4#ifndef QICONENGINEPLUGIN_H
5#define QICONENGINEPLUGIN_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qplugin.h>
9#include <QtCore/qfactoryinterface.h>
10
12
13
14class QIconEngine;
15
16#define QIconEngineFactoryInterface_iid "org.qt-project.Qt.QIconEngineFactoryInterface"
17
18class Q_GUI_EXPORT QIconEnginePlugin : public QObject
19{
21public:
22 QIconEnginePlugin(QObject *parent = nullptr);
24
25 virtual QIconEngine *create(const QString &filename = QString()) = 0;
26};
27
29
30#endif // QICONENGINEPLUGIN_H
The QIconEnginePlugin class provides an abstract base for custom QIconEngine plugins.
virtual QIconEngine * create(const QString &filename=QString())=0
Creates and returns a QIconEngine object for the icon with the given filename.
The QIconEngine class provides an abstract base class for QIcon renderers.
Definition qiconengine.h:15
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_OBJECT