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
qsharedimageloader_p.h
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#ifndef QSHAREDIMAGELOADER_H
5#define QSHAREDIMAGELOADER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
20#include <QImage>
21#include <QVariant>
22#include <QLoggingCategory>
23#include <qqml.h>
24
26
28
30
31class Q_LABSSHAREDIMAGE_EXPORT QSharedImageLoader : public QObject
32{
34 Q_DECLARE_PRIVATE(QSharedImageLoader)
35
36 // We need to provide some type, in order to mention the 1.0 version.
39
40public:
41 typedef QVector<QVariant> ImageParameters;
42
43 QSharedImageLoader(QObject *parent = nullptr);
45
46 QImage load(const QString &path, ImageParameters *params = nullptr);
47
48protected:
49 virtual QImage loadFile(const QString &path, ImageParameters *params);
50 virtual QString key(const QString &path, ImageParameters *params);
51
52private:
53 Q_DISABLE_COPY(QSharedImageLoader)
54};
55
57
58#endif // QSHAREDIMAGELOADER_H
\inmodule QtGui
Definition qimage.h:37
Definition qlist.h:75
\inmodule QtCore
Definition qobject.h:103
QVector< QVariant > ImageParameters
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
p1 load("image.bmp")
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLuint64 key
void ** params
GLsizei const GLchar *const * path
#define QML_ANONYMOUS
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_OBJECT