![]() |
Qt 6.x
The Qt SDK
|
The QPlatformSurfaceEvent class is used to notify about native platform surface events. \inmodule QtGui. More...
#include <qevent.h>
Public Member Functions | |
QPlatformSurfaceEvent (SurfaceEventType surfaceEventType) | |
Constructs a platform surface event for the given surfaceEventType. | |
SurfaceEventType | surfaceEventType () const |
Returns the specific type of platform surface event. | |
![]() | |
QEvent (Type type) | |
Constructs an event object of type type. | |
virtual | ~QEvent () |
Destroys the event. | |
Type | type () const |
Returns the event type. | |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false . | |
virtual void | setAccepted (bool accepted) |
bool | isAccepted () const |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). | |
bool | isInputEvent () const noexcept |
bool | isPointerEvent () const noexcept |
bool | isSinglePointEvent () const noexcept |
virtual QEvent * | clone () const |
Creates and returns an identical copy of this event. | |
Protected Attributes | |
SurfaceEventType | m_surfaceEventType |
![]() | |
quint16 | t |
Additional Inherited Members | |
![]() | |
static int | registerEventType (int hint=-1) noexcept |
![]() | |
QEvent (Type type, InputEventTag) | |
QEvent (Type type, PointerEventTag) | |
QEvent (Type type, SinglePointEventTag) | |
The QPlatformSurfaceEvent class is used to notify about native platform surface events. \inmodule QtGui.
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:
\value SurfaceCreated The underlying native surface has been created \value 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.
Enumerator | |
---|---|
SurfaceCreated | |
SurfaceAboutToBeDestroyed |
|
explicit |
Constructs a platform surface event for the given surfaceEventType.
Definition at line 1761 of file qevent.cpp.
|
inline |
Returns the specific type of platform surface event.
Definition at line 540 of file qevent.h.
Referenced by QBackingStoreRhiSupportWindowWatcher::eventFilter(), and operator<<().
|
protected |