Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsharedimageprovider_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 QSHAREDIMAGEPROVIDER_H
5#define QSHAREDIMAGEPROVIDER_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 <QQuickImageProvider>
21#include <private/qquickpixmapcache_p.h>
22#include <QScopedPointer>
23
25
27
29
31{
33 friend class SharedImageProvider;
34
35public:
41 };
42
44protected:
46 QString key(const QString &path, ImageParameters *params) override;
47};
48
49class Q_LABSSHAREDIMAGE_PRIVATE_EXPORT SharedImageProvider : public QQuickImageProviderWithOptions
50{
51public:
53
54 QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize, const QQuickImageProviderOptions &options) override;
55
56protected:
58};
59
61
62#endif // QSHAREDIMAGEPROVIDER_H
\inmodule QtGui
Definition qimage.h:37
\inmodule QtCore
Definition qobject.h:90
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:311
The QQuickImageProviderOptions class provides options for QQuickImageProviderWithOptions image reques...
QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) override
Implement this method to return the image with id.
\inmodule QtCore
QVector< QVariant > ImageParameters
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
QImage loadFile(const QString &path, ImageParameters *params) override
QScopedPointer< QuickSharedImageLoader > loader
Combined button and popup list for selecting options.
GLuint64 key
GLenum GLuint GLintptr GLsizeiptr size
[1]
void ** params
GLsizei const GLchar *const * path
#define Q_OBJECT