class QExposeEvent

The QExposeEvent class contains event parameters for expose events. More

Inheritance diagram of PySide6.QtGui.QExposeEvent

Synopsis

Methods

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__(arg__1)
Parameters:

arg__1QExposeEvent

Constructs an expose event for the given exposeRegion which must be in local coordinates.

__init__(m_region)
Parameters:

m_regionQRegion

Constructs an expose event for the given exposeRegion which must be in local coordinates.

region()
Return type:

QRegion

Note

This function is deprecated.

Use QPaintEvent instead.

Returns the window area that has been exposed. The region is given in local coordinates.