#include "private/qobject_p.h"
#include <QtGui/qguiapplication.h>
#include <QtWidgets/qstyle.h>
Go to the source code of this file.
◆ BEGIN_STYLE_PIXMAPCACHE
#define BEGIN_STYLE_PIXMAPCACHE |
( |
|
a | ) |
|
Value:
bool doPixmapCache = (!
option->rect.isEmpty()) \
} else { \
if (doPixmapCache) { \
}
void fill(uint pixel)
Fills the entire image with the given pixelValue.
The QPainter class performs low-level painting on widgets and other paint devices.
const QTransform & worldTransform() const
Returns the world transformation matrix.
const QTransform & deviceTransform() const
Returns the matrix that transforms from logical coordinates to device coordinates of the platform dep...
void drawPixmap(const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect)
Draws the rectangular portion source of the given pixmap into the given target in the paint device.
static bool find(const QString &key, QPixmap *pixmap)
Looks for a cached pixmap associated with the given key in the cache.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString uniqueName(const QString &key, const QStyleOption *option, const QSize &size)
GLboolean GLboolean GLboolean GLboolean a
[7]
QImage styleCacheImage(const QSize &size)
Definition at line 58 of file qstyle_p.h.
◆ END_STYLE_PIXMAPCACHE
#define END_STYLE_PIXMAPCACHE |
Value: if (doPixmapCache) { \
QPixmapCache::insert(unique, internalPixmapCache); \
} \
}
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
Definition at line 79 of file qstyle_p.h.
◆ styleCacheImage()
◆ styleCachePixmap()