이 페이지에서

QWaylandTouch Class

QWaylandTouch 클래스는 터치 장치에 대한 접근 기능을 제공합니다. 더 보기...

헤더: #include <QWaylandTouch>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
상속: QWaylandObject

공개 함수

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)

상세 설명

이 클래스는 QWaylandSeat 에서 터치 장치에 대한 액세스를 제공합니다. 이는 Wayland 인터페이스 wl_touch에 해당합니다.

멤버 함수 설명

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

seat 에 대해, 지정된 parent 를 사용하여 QWaylandTouch 객체를 생성합니다.

QWaylandCompositor *QWaylandTouch::compositor() const

이 QWaylandTouch 에 해당하는 컴포지터를 반환합니다.

QWaylandSeat *QWaylandTouch::seat() const

이 ` QWaylandTouch`에 대한 입력 장치를 반환합니다.

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

client 의 터치 장치에 터치 취소 이벤트를 전송합니다.

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

client 의 터치 장치에 터치 프레임 이벤트를 전송합니다. 이는 접촉점 목록의 끝을 나타냅니다.

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

event 의 모든 터치 포인트를 지정된 surface 로 전송한 다음, 터치 프레임 이벤트를 전송합니다.

sendTouchPointEvent() 및 sendFrameEvent()도 참조하십시오 .

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

지정된 id, position 및 state 을 사용하여 surface 의 터치 장치에 터치 포인트 이벤트를 전송합니다.

다운 또는 업 이벤트가 전송된 경우 해당 이벤트의 일련번호를 반환하고, 그렇지 않은 경우 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.