QPlatformSurfaceEvent Class
QPlatformSurfaceEvent 클래스는 네이티브 플랫폼의 표면 이벤트를 알리는 데 사용됩니다. 더 보기...
| 헤더: | #include <QPlatformSurfaceEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 상속: | QEvent |
- 상속된 멤버를 포함한 모든 멤버 목록
- QPlatformSurfaceEvent는 이벤트 클래스의 일부입니다.
공개 유형
| enum | SurfaceEventType { SurfaceCreated, SurfaceAboutToBeDestroyed } |
공개 함수
| QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType surfaceEventType) | |
| QPlatformSurfaceEvent::SurfaceEventType | surfaceEventType() const |
보호된 함수
| QPlatformSurfaceEvent(QPlatformSurfaceEvent &&) | |
| QPlatformSurfaceEvent & | operator=(QPlatformSurfaceEvent &&) |
| QPlatformSurfaceEvent & | operator=(const QPlatformSurfaceEvent &other) |
상세 설명
플랫폼 창 이벤트는 기본 네이티브 표면이 생성되거나 소멸될 때 창 및 오프스크린 표면으로 동기식으로 전송됩니다.
애플리케이션은 이러한 이벤트에 응답하여 기본 플랫폼 서페이스가 존재하는 시점을 파악할 수 있습니다.
멤버 유형 문서
enum QPlatformSurfaceEvent::SurfaceEventType
이 열거형은 플랫폼 표면 이벤트의 유형을 설명합니다. 가능한 유형은 다음과 같습니다.
| 상수 | 값 | 설명 |
|---|---|---|
QPlatformSurfaceEvent::SurfaceCreated | 0 | 기본 네이티브 서페이스가 생성되었습니다 |
QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed | 1 | 이 이벤트 직후 기본 네이티브 서페이스가 파괴됩니다 |
SurfaceAboutToBeDestroyed 이벤트 유형은 플랫폼 창이 소멸되기 전에 해당 창에 대한 렌더링을 중지하는 수단으로 유용합니다.
멤버 함수 문서
[explicit] QPlatformSurfaceEvent::QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType surfaceEventType)
지정된 ` surfaceEventType`에 대한 플랫폼 표면 이벤트를 생성합니다.
[protected delete] QPlatformSurfaceEvent::QPlatformSurfaceEvent(QPlatformSurfaceEvent &&)
QPlatformSurfaceEvent 의 인스턴스를 move-construct로 생성합니다. 이 함수는 삭제되었습니다.
QPlatformSurfaceEvent::SurfaceEventType QPlatformSurfaceEvent::surfaceEventType() const
플랫폼 표면 이벤트의 구체적인 유형을 반환합니다.
[protected delete] QPlatformSurfaceEvent &QPlatformSurfaceEvent::operator=(QPlatformSurfaceEvent &&)
other 를 이 QPlatformSurfaceEvent 인스턴스에 이동 할당합니다. 이 함수는 삭제됩니다.
[noexcept protected default] QPlatformSurfaceEvent &QPlatformSurfaceEvent::operator=(const QPlatformSurfaceEvent &other)
other 를 이 QPlatformSurfaceEvent 인스턴스에 복사-할당합니다.
© 2026 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.