QRasterWindow¶
QRasterWindow
is a convenience class for usingQPainter
on aQWindow
. More…
Detailed Description¶
QRasterWindow
is aQWindow
with a raster-based, non-OpenGL surface. On top of the functionality offered byQWindow
,QRasterWindow
adds a virtualpaintEvent()
function and the possibility to open aQPainter
on itself. The underlying paint engine will be the raster one, meaning that all drawing will happen on the CPU. For performing accelerated, OpenGL-based drawing, useQOpenGLWindow
instead.Internally the class is thin wrapper for
QWindow
andQBackingStore
and is very similar to the Raster Window Example that uses these classes directly.See also
- class PySide2.QtGui.QRasterWindow([parent=None])¶
- param parent:
Constructs a new
QRasterWindow
withparent
.
© 2022 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.