QWaylandClient Class
La clase QWaylandClient representa un cliente conectado a QWaylandCompositor. Más información...
| Encabezado: | #include <QWaylandClient> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| En QML: | WaylandClient |
| Heredan de: | QObject |
Propiedades
- compositor : QWaylandCompositor* const
- groupId : const qint64
- processId : const qint64
- userId : const qint64
Funciones públicas
| virtual | ~QWaylandClient() override |
| wl_client * | client() const |
| QWaylandCompositor * | compositor() const |
| qint64 | groupId() const |
| void | kill(int signal = SIGTERM) |
| qint64 | processId() const |
| qint64 | userId() const |
Ranuras públicas
| void | close() |
Miembros públicos estáticos
| QWaylandClient * | fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient) |
Descripción detallada
Esta clase corresponde a un cliente conectado al compositor mediante el protocolo Wayland. Se corresponde con la interfaz de Wayland wl_client.
Documentación de propiedades
[read-only] compositor : QWaylandCompositor* const
Esta propiedad contiene el compositor de este QWaylandClient.
Funciones de acceso:
| QWaylandCompositor * | compositor() const |
[read-only] groupId : const qint64
Esta propiedad contiene el identificador del grupo de este QWaylandClient.
Funciones de acceso:
| qint64 | groupId() const |
[read-only] processId : const qint64
Esta propiedad contiene el identificador de proceso de este QWaylandClient.
Funciones de acceso:
| qint64 | processId() const |
[read-only] userId : const qint64
Esta propiedad contiene el ID de usuario de este QWaylandClient.
Funciones de acceso:
| qint64 | userId() const |
Documentación de las funciones de miembro
[override virtual noexcept] QWaylandClient::~QWaylandClient()
Destruye el « QWaylandClient ».
wl_client *QWaylandClient::client() const
Devuelve el cliente Wayland de este QWaylandClient.
[slot] void QWaylandClient::close()
Cierra el cliente.
[static] QWaylandClient *QWaylandClient::fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)
Devuelve el objeto « QWaylandClient » correspondiente al cliente de Wayland wlClient y compositor. Si aún no se ha creado un objeto « QWaylandClient » para un cliente, se crea y se devuelve.
[invokable] void QWaylandClient::kill(int signal = SIGTERM)
Elimina el cliente con el signal especificado.
Nota: Esta función se puede invocar a través del sistema de metaobjetos y desde QML. Véase 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.