QPaintEventclass contains event parameters for paint events. 更多 …
描绘被裁剪到
region()during the processing of a paint event. This clipping is performed by Qt’s paint system and is independent of any clipping that may be applied to aQPainter用于在描绘设备上绘制。因此,返回值通过
clipRegion()on a newly-constructedQPainter不会反映由描绘系统所使用的裁剪区域。另请参阅
QPainterupdate()repaint()paintEvent()
QPaintEvent
(
paintRect
)
¶
QPaintEvent(paintRegion)
paintRect
–
QRect
paintRegion
–
QRegion
PySide2.QtGui.QPaintEvent.
rect
(
)
¶
QRect
返回需要被更新的矩形。
另请参阅
PySide2.QtGui.QPaintEvent.
region
(
)
¶
返回需要被更新的区域。
另请参阅