class QPlatformSurfaceEvent

The QPlatformSurfaceEvent class is used to notify about native platform surface events. More

Inheritance diagram of PySide6.QtGui.QPlatformSurfaceEvent

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

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 SurfaceEventType

This enum describes the type of platform surface event. The possible types are:

Constant

Description

QPlatformSurfaceEvent.SurfaceCreated

The underlying native surface has been created

QPlatformSurfaceEvent.SurfaceAboutToBeDestroyed

The underlying native surface will be destroyed immediately after this event

The SurfaceAboutToBeDestroyed event type is useful as a means of stopping rendering to a platform window before it is destroyed.

__init__(arg__1)
Parameters:

arg__1QPlatformSurfaceEvent

Constructs a platform surface event for the given surfaceEventType.

surfaceEventType()
Return type:

SurfaceEventType

Returns the specific type of platform surface event.