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
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/qquickpixmap_p.h>
22#include <QScopedPointer>
23
25
27
29
48
49class Q_LABSSHAREDIMAGE_EXPORT SharedImageProvider : public QQuickImageProviderWithOptions
50{
51public:
53
54 QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize, const QQuickImageProviderOptions &options) override;
55
56protected:
57 QScopedPointer<QuickSharedImageLoader> loader;
58};
59
61
62#endif // QSHAREDIMAGEPROVIDER_H
\inmodule QtGui
Definition qimage.h:37
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QQuickImageProviderOptions class provides options for QQuickImageProviderWithOptions image reques...
QVector< QVariant > ImageParameters
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QuickSharedImageLoader(QObject *parent=nullptr)
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