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
qquickimage_p_p.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 QQUICKIMAGE_P_P_H
5#define QQUICKIMAGE_P_P_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
18#include "qquickimagebase_p_p.h"
19#include "qquickimage_p.h"
20#include <QtQuick/qsgtextureprovider.h>
21
23
25{
27public:
29
30 void updateTexture(QSGTexture *texture);
31
32 QSGTexture *texture() const override ;
33
34 friend class QQuickImage;
35
39};
40
41class Q_QUICK_EXPORT QQuickImagePrivate : public QQuickImageBasePrivate
42{
43 Q_DECLARE_PUBLIC(QQuickImage)
44
45public:
47 void setImage(const QImage &img);
48 void setPixmap(const QQuickPixmap &pixmap);
49
50 bool pixmapChanged : 1;
51 bool mipmap : 1;
55
56 qreal paintedWidth = 0;
57 qreal paintedHeight = 0;
58 QQuickImageTextureProvider *provider = nullptr;
59};
60
62
63#endif // QQUICKIMAGE_P_P_H
\inmodule QtGui
Definition qimage.h:37
The QSGTextureProvider class encapsulates texture based entities in QML.
\inmodule QtQuick
Definition qsgtexture.h:20
Combined button and popup list for selecting options.
GLenum fillMode
GLenum GLuint texture
GLint void * img
Definition qopenglext.h:233
#define Q_OBJECT
double qreal
Definition qtypes.h:187
widget render & pixmap
imageLabel setPixmap(QPixmap::fromImage(image))