8#include <QtCore/qdebug.h>
9#include <qpa/qplatformscreen.h>
10#include <private/qguiapplication_p.h>
21 qDebug() <<
"QMinimalBackingStore::QMinimalBackingStore:" << (
quintptr)
this;
31 qDebug(
"QMinimalBackingStore::paintDevice");
46 mImage.
save(filename);
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
QScreen * primaryScreen
the primary (or default) screen of the application.
QSize size() const
Returns the size of the image, i.e.
bool save(const QString &fileName, const char *format=nullptr, int quality=-1) const
Saves the image to the file with the given fileName, using the given image file format and quality fa...
Format
The following image formats are available in Qt.
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
QMinimalBackingStore(QWindow *window)
void resize(const QSize &size, const QRegion &staticContents) override
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
QPlatformScreen * handle() const
Get the platform screen handle.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=u' ') const
QByteArray toLocal8Bit() const &
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset
GLint GLsizei GLsizei GLenum format