QWaylandClientExtension Class
Wayland 프로토콜에 사용자 정의 확장 기능을 구현하기 위한 클래스입니다. 더 보기...
| 헤더: | #include <QWaylandClientExtension> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandClient) target_link_libraries(mytarget PRIVATE Qt6::WaylandClient) |
| qmake: | QT += waylandclient |
| 상속: | QObject |
| 상속받는 클래스: |
속성
- active : bool
- protocolVersion : int
공개 함수
| QWaylandClientExtension(const int ver) | |
(since 6.12) | QWaylandClientExtension(int ver, QObject *parent) |
| virtual | ~QWaylandClientExtension() |
| bool | isActive() const |
| int | version() const |
신호
| void | activeChanged() |
| void | versionChanged() |
상세 설명
QWaylandClientExtension 클래스는 Wayland 프로토콜용 사용자 정의 확장을 구현하는 데 사용할 수 있습니다. 확장을 사용하려면 컴포지터에서도 해당 확장을 지원해야 합니다. 사용자 정의 확장의 컴포지터 측과 클라이언트 측을 모두 구현한 예제는 Qt Wayland Compositor 사용자 정의 확장 기능의 컴포지터 측과 클라이언트 측을 모두 구현한 예제를 참조하십시오.
이 클래스는 일반적으로 직접 상속받지 않고, 편의상 ` QWaylandClientExtensionTemplate `을 통해 상속받습니다.
속성 설명
[read-only] active : bool
이 속성은 확장 기능의 활성 상태를 나타냅니다.
확장 기능이 현재 활성화된 상태라면 이 속성을 ` true `로 설정합니다. 그렇지 않은 경우 이 속성의 값은 ` false`입니다.
액세스 함수:
| bool | isActive() const |
알림 신호:
| void | activeChanged() |
[read-only] protocolVersion : int
이 속성은 프로토콜의 버전을 저장합니다.
이 속성은 요청된 프로토콜의 버전을 저장합니다.
액세스 함수:
| int | version() const |
알림 신호:
| void | versionChanged() |
멤버 함수 설명서
[explicit] QWaylandClientExtension::QWaylandClientExtension(const int ver)
클라이언트 확장 기능을 생성하고, 그 버전을 ver 로 설정합니다. QWaylandClientExtension(ver, nullptr)과 동일합니다.
[explicit, since 6.12] QWaylandClientExtension::QWaylandClientExtension(int ver, QObject *parent)
클라이언트 확장 기능을 생성하고, 그 버전을 ver 로 설정하며, 해당 확장 기능을 parent 의 자식으로 만듭니다.
이 함수는 Qt 6.12에서 도입되었습니다.
[virtual noexcept] QWaylandClientExtension::~QWaylandClientExtension()
클라이언트 확장 기능을 삭제합니다.
© 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.