PySide6.QtGui.QPaintDeviceWindow¶
- class QPaintDeviceWindow¶
Convenience subclass of
QWindowthat is also aQPaintDevice.Details
QPaintDeviceWindowis like a regularQWindow, with the added functionality of being a paint device too. Whenever the content needs to be updated, the virtualpaintEvent()function is called. Subclasses, that reimplement this function, can then simply open aQPainteron the window.Note
This class cannot directly be used in applications. It rather serves as a base for subclasses like QOpenGLWindow.
See also
Inherited by:
QOpenGLWindow,QRasterWindowSynopsis¶
Methods¶
def
update()
Slots¶
def
update()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- 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.
- update(rect)
- Parameters:
rect –
QRect
Marks the
rectof the window as dirty and schedules a repaint.Note
Subsequent calls to this function before the next paint event will get ignored, but
rectis added to the region to update.Note
For non-exposed windows the update is deferred until the window becomes exposed again.
- update(region)
- Parameters:
region –
QRegion
Marks the
regionof the window as dirty and schedules a repaint.Note
Subsequent calls to this function before the next paint event will get ignored, but
regionis added to the region to update.Note
For non-exposed windows the update is deferred until the window becomes exposed again.