QPlatformSurfaceEvent Class
QPlatformSurfaceEvent 클래스는 네이티브 플랫폼 표면 이벤트에 대한 알림에 사용됩니다. 더 보기...
Header: | #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 |
상세 설명
플랫폼 창 이벤트는 기본 네이티브 서페이스가 생성되거나 소멸될 때 창과 화면 밖 서페이스로 동기적으로 전송됩니다.
애플리케이션은 이러한 이벤트에 응답하여 기본 플랫폼 서페이스가 언제 존재하는지 알 수 있습니다.
멤버 유형 문서
enum QPlatformSurfaceEvent::SurfaceEventType
이 열거형은 플랫폼 표면 이벤트의 유형을 설명합니다. 가능한 유형은 다음과 같습니다:
상수 | 값 | 설명 |
---|---|---|
QPlatformSurfaceEvent::SurfaceCreated | 0 | 기본 네이티브 서페이스가 생성되었습니다. |
QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed | 1 | 기본 네이티브 표면이 이 이벤트 직후에 소멸됩니다. |
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.