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 |
属性
- compositor : QWaylandCompositor* const
- groupId : const qint64
- processId : const qint64
- userId : const qint64
公共函数
| 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) |
属性文档
[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.