QWaylandTouch Class
La classe QWaylandTouch permet d'accéder à un dispositif tactile. Plus d'informations...
| En-tête : | #include <QWaylandTouch> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake : | QT += waylandcompositor |
| Héritages : | QWaylandObject |
Fonctions publiques
| 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) |
Description détaillée
Cette classe permet d'accéder au périphérique tactile d'un site QWaylandSeat. Elle correspond à l'interface Wayland wl_touch.
Documentation des fonctions membres
QWaylandTouch::QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)
Construit un QWaylandTouch pour le seat et avec le parent donné.
QWaylandCompositor *QWaylandTouch::compositor() const
Retourne le compositeur pour cette QWaylandTouch.
QWaylandSeat *QWaylandTouch::seat() const
Renvoie le périphérique d'entrée pour cette QWaylandTouch.
[virtual] void QWaylandTouch::sendCancelEvent(QWaylandClient *client)
Envoi d'un événement d'annulation tactile au dispositif tactile d'un client.
[virtual] void QWaylandTouch::sendFrameEvent(QWaylandClient *client)
Envoie un événement de cadre tactile à l'appareil tactile d'un client. Cela indique la fin d'une liste de points de contact.
[virtual] void QWaylandTouch::sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event)
Envoie tous les points de contact de event au site surface spécifié, suivi d'un événement de cadre de contact.
Voir également sendTouchPointEvent() et sendFrameEvent().
[virtual] uint QWaylandTouch::sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state)
Envoie un événement de point de contact à l'appareil tactile de surface avec les données id, position, et state.
Renvoie le numéro de série de l'événement vers le bas ou vers le haut s'il a été envoyé, sinon 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.