The QPlatformSurfaceEvent class is used to notify about native platform surface events. More...
Header: | #include <QPlatformSurfaceEvent> |
qmake: | QT += gui |
Since: | Qt 5.5 |
Inherits: | QEvent |
This class was introduced in Qt 5.5.
enum | SurfaceEventType { SurfaceCreated, SurfaceAboutToBeDestroyed } |
QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType surfaceEventType) | |
QPlatformSurfaceEvent::SurfaceEventType | surfaceEventType() const |
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.
This enum describes the type of platform surface event. The possible types are:
Constant | Value | Description |
---|---|---|
QPlatformSurfaceEvent::SurfaceCreated |
0 |
The underlying native surface has been created |
QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed |
1 |
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.
Constructs a platform surface event for the given surfaceEventType.
Returns the specific type of platform surface event.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qplatformsurfaceevent.html