本页内容

WaylandClient QML Type (Uncreatable)

表示连接到WaylandCompositor 的客户端。更多...

Import Statement: import QtWayland.Compositor
In C++: QWaylandClient

注意:此类型无法创建。无法在 QML 中实例化。

属性

方法

详细说明

此类表示通过 Wayland 协议连接到合成器的客户端。它对应于 Wayland 接口 wl_client。

属性文档

compositor : WaylandCompositor [read-only]

该属性存储了此WaylandClient 的合成器。

groupId : int [read-only]

该属性存储了此WaylandClient 的组ID。

processId : int [read-only]

该属性存储了此WaylandClient 的进程ID。

userId : int [read-only]

该属性保存了此WaylandClient 的用户ID。

方法文档

void close()

关闭客户端

void kill(signal)

终止具有指定signal 的客户端。

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