QPaintDeviceWindow露

Convenience subclass of QWindow that is also a QPaintDevice . More鈥�

Inheritance diagram of PySide2.QtGui.QPaintDeviceWindow

Inherited by: QOpenGLWindow, QRasterWindow

Synopsis露

Functions露

Virtual functions露

Slots露

Detailed Description露

QPaintDeviceWindow is like a regular QWindow , with the added functionality of being a paint device too. Whenever the content needs to be updated, the virtual paintEvent() function is called. Subclasses, that reimplement this function, can then simply open a QPainter on the window.

Note

This class cannot directly be used in applications. It rather serves as a base for subclasses like QOpenGLWindow .

See also

QOpenGLWindow

class PySide2.QtGui.QPaintDeviceWindow露
PySide2.QtGui.QPaintDeviceWindow.paintEvent(event)露
Parameters:

event 鈥� PySide2.QtGui.QPaintEvent

Handles paint events passed in the event parameter.

The default implementation does nothing. Reimplement this function to perform painting. If necessary, the dirty area is retrievable from the event .

PySide2.QtGui.QPaintDeviceWindow.update()露

Marks the entire window as dirty and schedules a repaint.

Note

Subsequent calls to this function before the next paint event will get ignored.

Note

For non-exposed windows the update is deferred until the window becomes exposed again.

PySide2.QtGui.QPaintDeviceWindow.update(rect)
Parameters:

rect 鈥� PySide2.QtCore.QRect

PySide2.QtGui.QPaintDeviceWindow.update(region)
Parameters:

region 鈥� PySide2.QtGui.QRegion