이 페이지에서

QWaylandClientExtension Class

Wayland 프로토콜에서 사용자 정의 확장을 구현하기 위한 클래스입니다. 더 보기...

Header: #include <QWaylandClientExtension>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandClient)
target_link_libraries(mytarget PRIVATE Qt6::WaylandClient)
qmake: QT += waylandclient
상속합니다: QObject
상속 대상:

QWaylandClientExtensionTemplate

속성

공공 기능

QWaylandClientExtension(const int ver)
virtual ~QWaylandClientExtension()
bool isActive() const
int version() const

신호

상세 설명

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()

멤버 함수 문서

QWaylandClientExtension::QWaylandClientExtension(const int ver)

클라이언트 확장을 구성하고 버전을 ver 로 설정합니다.

[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.