QWaylandTouch Class
Die Klasse „QWaylandTouch“ ermöglicht den Zugriff auf ein Touch-Gerät. Mehr...
| Header: | #include <QWaylandTouch> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| Erbt: | QWaylandObject |
Öffentliche Funktionen
| 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) |
Ausführliche Beschreibung
Diese Klasse ermöglicht den Zugriff auf das Touch-Gerät in einem „ QWaylandSeat “. Sie entspricht der Wayland-Schnittstelle „wl_touch“.
Dokumentation der Mitgliedsfunktionen
QWaylandTouch::QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)
Erstellt ein `QWaylandTouch` für die ` seat ` und mit dem angegebenen ` parent`.
QWaylandCompositor *QWaylandTouch::compositor() const
Gibt den Compositor für diese „ QWaylandTouch “ zurück.
QWaylandSeat *QWaylandTouch::seat() const
Gibt das Eingabegerät für diese „ QWaylandTouch “ zurück.
[virtual] void QWaylandTouch::sendCancelEvent(QWaylandClient *client)
Sendet ein „Touch-Cancel“-Ereignis an das Touch-Gerät eines „ client “.
[virtual] void QWaylandTouch::sendFrameEvent(QWaylandClient *client)
Sendet ein Touch-Frame-Ereignis an das Touch-Gerät eines „ client “. Dies kennzeichnet das Ende einer Kontaktpunktliste.
[virtual] void QWaylandTouch::sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event)
Sendet alle Berührungspunkte in „ event “ an die angegebene Adresse „ surface “, gefolgt von einem Touch-Frame-Ereignis.
Siehe auch „ sendTouchPointEvent()“ und „ sendFrameEvent()“.
[virtual] uint QWaylandTouch::sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state)
Sendet ein Berührungsereignis an das Touch-Gerät von surface mit den angegebenen Werten für „ id “, „ position “ und „ state “.
Gibt die Seriennummer des „down“- oder „up“-Ereignisses zurück, sofern eines gesendet wurde; andernfalls 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.