En esta página

QWaylandTouch Class

La clase QWaylandTouch proporciona acceso a un dispositivo táctil. Más...

Cabecera: #include <QWaylandTouch>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
Hereda: QWaylandObject

Funciones Públicas

QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)
QWaylandCompositor *compositor() const
QWaylandSeat *seat() const
virtual void sendCancelEvent(QWaylandClient *client)
virtual void sendFrameEvent(QWaylandClient *client)
virtual void sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event)
virtual uint sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state)

Descripción detallada

Esta clase proporciona acceso al dispositivo táctil en QWaylandSeat. Se corresponde con la interfaz wl_touch de Wayland.

Documentación de las funciones miembro

QWaylandTouch::QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)

Construye un QWaylandTouch para la dirección seat y con la dirección parent.

QWaylandCompositor *QWaylandTouch::compositor() const

Devuelve el compositor para este QWaylandTouch.

QWaylandSeat *QWaylandTouch::seat() const

Devuelve el dispositivo de entrada para este QWaylandTouch.

[virtual] void QWaylandTouch::sendCancelEvent(QWaylandClient *client)

Envía un evento de cancelación táctil al dispositivo táctil de un client.

[virtual] void QWaylandTouch::sendFrameEvent(QWaylandClient *client)

Envía un evento de marco táctil al dispositivo táctil de un client. Esto indica el final de una lista de puntos de contacto.

[virtual] void QWaylandTouch::sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event)

Envía todos los puntos táctiles de event al surface especificado, seguido de un evento de marco táctil.

Véase también sendTouchPointEvent() y sendFrameEvent().

[virtual] uint QWaylandTouch::sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state)

Envía un evento de punto táctil al dispositivo táctil de surface con los datos id, position, y state.

Devuelve la serie del evento de bajada o subida si se envió, en caso contrario 0.

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