PySide6.QtGui.QExposeEvent¶
- class QExposeEvent¶
The
QExposeEvent
class contains event parameters for expose events. More…Synopsis¶
Methods¶
def
__init__()
def
region()
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
Detailed Description¶
Expose events are sent to windows when they move between the un-exposed and exposed states.
An exposed window is potentially visible to the user. If the window is moved off screen, is made totally obscured by another window, is minimized, or similar, an expose event is sent to the window, and isExposed() might change to false.
Expose events should not be used to paint. Handle
QPaintEvent
instead.The event handler
exposeEvent()
receives expose events.- __init__(exposeRegion)¶
- Parameters:
exposeRegion –
QExposeEvent
Constructs an expose event for the given
exposeRegion
which must be in local coordinates.- __init__(m_region)
- Parameters:
m_region –
QRegion
Constructs an expose event for the given
exposeRegion
which must be in local coordinates.Use
QPaintEvent
instead.Returns the window area that has been exposed. The region is given in local coordinates.