QPlatformSurfaceEvent Class

QPlatformSurfaceEventクラスは、ネイティブ・プラットフォーム・サーフェス・イベントを通知するために使用されます。詳細...

ヘッダー #include <QPlatformSurfaceEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
継承: QEvent

パブリック・タイプ

enum SurfaceEventType { SurfaceCreated, SurfaceAboutToBeDestroyed }

パブリック関数

QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType surfaceEventType)
QPlatformSurfaceEvent::SurfaceEventType surfaceEventType() const

詳細説明

プラットフォーム・ウィンドウ・イベントは、その基礎となるネイティブ・サーフェスが作成されたり、破棄されそうになったときに、ウィンドウやオフスクリーン・サーフェスに同期して送信されます。

アプリケーションはこれらのイベントに応答して、基盤となるプラットフォーム・サーフェスがいつ存在するかを知ることができる。

メンバー型ドキュメント

enum QPlatformSurfaceEvent::SurfaceEventType

この列挙型は、プラットフォームサーフェスイベントのタイプを記述する。可能なタイプは

定数説明
QPlatformSurfaceEvent::SurfaceCreated0基礎となるネイティブサーフェスが作成された
QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed1基礎となるネイティブ・サーフェスは、このイベントの直後に破棄されます。

SurfaceAboutToBeDestroyed イベントタイプは、破壊される前にプラットフォームウィンドウへのレンダリングを停止する手段として便利です。

メンバー関数ドキュメント

[explicit] QPlatformSurfaceEvent::QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType surfaceEventType)

与えられたsurfaceEventType のプラットフォームサーフェスイベントを構築する。

QPlatformSurfaceEvent::SurfaceEventType QPlatformSurfaceEvent::surfaceEventType() const

プラットフォームサーフェスイベントの特定のタイプを返します。

© 2025 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.