QWaylandTouch Class

Die Klasse QWaylandTouch ermöglicht den Zugriff auf ein Touch-Gerät. Mehr...

Kopfzeile: #include <QWaylandTouch>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
Vererbungen: 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)

Detaillierte Beschreibung

Diese Klasse ermöglicht den Zugriff auf das Touch-Gerät in einer QWaylandSeat. Sie entspricht der Wayland-Schnittstelle wl_touch.

Dokumentation der Mitgliedsfunktionen

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

Konstruiert ein QWaylandTouch für die seat und mit der angegebenen parent.

QWaylandCompositor *QWaylandTouch::compositor() const

Gibt den Compositor für diesen 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 Ereignis zum Abbrechen einer Berührung an das Touch-Gerät eines client.

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

Sendet ein Touch-Frame-Ereignis an das Touch-Device eines client. Dies zeigt das Ende einer Kontaktpunktliste an.

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

Sendet alle Berührungspunkte in event an das angegebene surface, gefolgt von einem Berührungsrahmenereignis.

Siehe auch sendTouchPointEvent() und sendFrameEvent().

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

Sendet ein Berührungspunkt-Ereignis an das Berührungsgerät von surface mit den angegebenen id, position und state.

Gibt die Seriennummer des Abwärts- oder Aufwärtsereignisses zurück, wenn es gesendet wurde, ansonsten 0.

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