QRasterWindowis a convenience class for usingQPainter在QWindow. 更多 …
QRasterWindow是QWindowwith a raster-based, non-OpenGL surface. On top of the functionality offered byQWindow,QRasterWindowadds a virtualpaintEvent()function and the possibility to open aQPainteron 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代替。Internally the class is thin wrapper for
QWindowandQBackingStoreand is very similar to the 光栅窗口范例 that uses these classes directly.另请参阅
QRasterWindow
(
[
parent=None
]
)
¶
- param parent
构造新
QRasterWindow
with
parent
.