QPlatformSurfaceEvent¶
The QPlatformSurfaceEvent
class is used to notify about native platform surface events. More…
Synopsis¶
Functions¶
def
surfaceEventType
()
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 PySide6.QtGui.QPlatformSurfaceEvent(arg__1)¶
- Parameters
arg__1 –
PySide6.QtGui.QPlatformSurfaceEvent
Constructs a platform surface event for the given surfaceEventType
.
- PySide6.QtGui.QPlatformSurfaceEvent.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.
- PySide6.QtGui.QPlatformSurfaceEvent.surfaceEventType()¶
- Return type
Returns the specific type of platform surface event.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.