Platform window events are synchronously sent to windows and offscreen surfaces when their underlying native surfaces are created or are about to be destroyed.
Applications can respond to these events to know when the underlying platform surface exists.
- class PySide6.QtGui.QPlatformSurfaceEvent(arg__1)#
Constructs a platform surface event for the given
This enum describes the type of platform surface event. The possible types are:
The underlying native surface has been created
The underlying native surface will be destroyed immediately after this event
SurfaceAboutToBeDestroyed event type is useful as a means of stopping rendering to a platform window before it is destroyed.
Returns the specific type of platform surface event.