QWaylandClient 类
QWaylandClient 类表示连接到 QWaylandCompositor 的客户端。 更多...
| 头文件 | #include <QWaylandClient> | 
| CMake | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) | 
| qmake | QT += waylandcompositor | 
| 实例化 | WaylandClient | 
| 继承自 | QObject | 
公共类型
| flags | TextInputProtocols | 
属性
- 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) | 
属性文档
[只读] compositor : QWaylandCompositor* const
此属性包含此 QWaylandClient 的组合器。
访问函数
| QWaylandCompositor * | compositor() const | 
[只读] groupId : const qint64
此属性包含此 QWaylandClient 的组 id。
访问函数
| qint64 | groupId() const | 
[只读] processId : const qint64
此属性持有此 QWaylandClient 的进程 ID。
访问函数
| qint64 | processId() const | 
[只读] userId : const qint64
此属性持有此 QWaylandClient 的用户 ID。
访问函数
| qint64 | userId() const | 
成员函数文档
[重写 虚拟 noexcept] QWaylandClient::~QWaylandClient()
销毁 QWaylandClient。
wl_client *QWaylandClient::client() const
返回此 QWaylandClient 的 Wayland 客户端。
[槽函数] void QWaylandClient::close()
关闭客户端。
[静态] QWaylandClient *QWaylandClient::fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)
返回与 Wayland 客户端 wlClient 和 compositor 相对应的 QWaylandClient。如果尚未为此客户端创建 QWaylandClient,则将其创建并返回。
[可调用的] void QWaylandClient::kill(int signal = SIGTERM)
用指定的 signal 杀死客户端。
注意:此函数可以通过元对象系统从 QML 中调用。请参阅 Q_INVOKABLE。
© 2024 The Qt Company Ltd. 本文档中包含的贡献的版权属于其各自的所有者。本提供的文档是根据自由软件基金会发布的 GNU 自由文档许可证 version 1.3 的条款许可的。Qt 和相应的标志是 The Qt Company Ltd. 在芬兰以及其他国家和地区的商标。所有其他商标均为其各自所有者的财产。