이 페이지에서

QWaylandClient Class

QWaylandClient 클래스는 QWaylandCompositor 에 연결된 클라이언트를 나타냅니다. 더 보기...

헤더: #include <QWaylandClient>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
QML에서: WaylandClient
상속: QObject

속성

공개 함수

virtual ~QWaylandClient() override
wl_client *client() const
QWaylandCompositor *compositor() const
qint64 groupId() const
void kill(int signal = SIGTERM)
qint64 processId() const
qint64 userId() const

공개 슬롯

void close()

정적 공용 멤버

QWaylandClient *fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)

상세 설명

이 클래스는 Wayland 프로토콜을 사용하여 컴포지터에 연결된 클라이언트를 나타냅니다. 이는 Wayland 인터페이스인 wl_client에 해당합니다.

속성 설명

[read-only] compositor : QWaylandCompositor* const

이 속성은 이 QWaylandClient 의 컴포지터를 저장합니다.

액세스 함수:

QWaylandCompositor *compositor() const

[read-only] groupId : const qint64

이 속성은 이 QWaylandClient 의 그룹 ID를 포함합니다.

액세스 함수:

qint64 groupId() const

[read-only] processId : const qint64

이 속성은 이 QWaylandClient 의 프로세스 ID를 저장합니다.

액세스 함수:

qint64 processId() const

[read-only] userId : const qint64

이 속성은 이 QWaylandClient 의 사용자 ID를 저장합니다.

액세스 함수:

qint64 userId() const

멤버 함수 문서

[override virtual noexcept] QWaylandClient::~QWaylandClient()

QWaylandClient 를 삭제합니다.

wl_client *QWaylandClient::client() const

이 ` QWaylandClient`의 Wayland 클라이언트를 반환합니다.

[slot] void QWaylandClient::close()

클라이언트를 종료합니다.

[static] QWaylandClient *QWaylandClient::fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)

Wayland 클라이언트 wlClient 및 compositor 에 해당하는 ` QWaylandClient `를 반환합니다. 해당 클라이언트에 대한 ` QWaylandClient `가 아직 생성되지 않은 경우, 이를 생성하여 반환합니다.

[invokable] void QWaylandClient::kill(int signal = SIGTERM)

지정된 signal 를 가진 클라이언트를 종료합니다.

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.

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