QBackingStore Class

The QBackingStore class provides a drawing area for QWindow. More...

Header: #include <QBackingStore>
qmake: QT += gui
Since: Qt 5.0

This class was introduced in Qt 5.0.

Detailed Description

QBackingStore enables the use of QPainter to paint on a QWindow with type RasterSurface. The other way of rendering to a QWindow is through the use of OpenGL with QOpenGLContext.

A QBackingStore contains a buffered representation of the window contents, and thus supports partial updates by using QPainter to only update a sub region of the window contents.

QBackingStore might be used by an application that wants to use QPainter without OpenGL acceleration and without the extra overhead of using the QWidget or QGraphicsView UI stacks. For an example of how to use QBackingStore see the Raster Window Example.