44 #include <QtCore/qdebug.h> 45 #include <QtGui/private/qapplication_p.h> 80 QWindowSurface::resize(size);
Format
The following image formats are available in Qt.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
void resize(const QSize &size)
bool save(const QString &fileName, const char *format=0, int quality=-1) const
Saves the image to the file with the given fileName, using the given image file format and quality fa...
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
The QString class provides a Unicode character string.
Q_CORE_EXPORT void qDebug(const char *,...)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QImage class provides a hardware-independent image representation that allows direct access to th...
The QRegion class specifies a clip region for a painter.
void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
QByteArray toLocal8Bit() const Q_REQUIRED_RESULT
Returns the local 8-bit representation of the string as a QByteArray.
The QWindowSurface class provides the drawing area for top-level windows.
QSize size() const
Returns the size of the image, i.
const char * constData() const
Returns a pointer to the data stored in the byte array.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
The QPoint class defines a point in the plane using integer precision.
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
The QSize class defines the size of a two-dimensional object using integer point precision.
QMinimalWindowSurface(QWidget *window)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.