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 .
Constructs an empty surface for the given top-level
Begins painting on the backing store surface in the given
You should call this function before using the
paintDevice() to paint.
You should call this function after painting with the
paintDevice() has ended.
flush(region[, window=None[, offset=QPoint()]])¶
Flushes the given
region from the specified
window onto the screen.
window must either be the top level window represented by this backingstore, or a non-transient child of that window. Passing
None falls back to using the backingstore’s top level window.
window is a child window, the
region should be in child window coordinates, and the
offset should be the child window’s offset in relation to the backingstore’s top level window.
You should call this function after ending painting with
- Return type
Returns a boolean indicating if this window has static contents or not.
Returns the paint device for this surface.
Sets the size of the window surface to
scroll(area, dx, dy)¶
dx – int
dy – int
- Return type
Scrolls the given
dx pixels to the right and
dy downward; both
dy may be negative.
true if the area was scrolled successfully; false otherwise.
region as the static contents of this window.
Returns the current size of the window surface.
QRegion representing the area of the window that has static contents.
Returns a pointer to the top-level window associated with this surface.
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.