内容表

上一话题

QRadialGradient

下一话题

QRawFont

QRasterWindow

QRasterWindow is a convenience class for using QPainter QWindow . 更多

Inheritance diagram of PySide2.QtGui.QRasterWindow

详细描述

QRasterWindow QWindow with a raster-based, non-OpenGL surface. On top of the functionality offered by QWindow , QRasterWindow adds a virtual paintEvent() function and the possibility to open a QPainter 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, use QOpenGLWindow 代替。

Internally the class is thin wrapper for QWindow and QBackingStore and is very similar to the 光栅窗口范例 that uses these classes directly.

class QRasterWindow ( [ parent=None ] )
param parent

QWindow

构造新 QRasterWindow with parent .