GestureEvent QML Type (Uncreatable)
与 gestureStarted 信号一起传递的参数。更多...
| Import Statement: | import QtQuick |
注意:这是一个不可创建的类型。无法在 QML 中对其进行实例化。
属性
- dragThreshold : real
- touchPoints : list<TouchPoint>
方法
- void grab()
详细说明
GestureEvent 对象包含当前的触摸点(您可以选择将其解释为手势),以及一个可调用的方法,用于独占地获取相关触摸点。
属性文档
dragThreshold : real [read-only]
该属性存储了系统设置,即手指需要移动多远才会被识别为拖动操作。该属性源自QStyleHints::startDragDistance()。
touchPoints : list<TouchPoint> [read-only]
该属性保存当前触点集。
方法文档
void grab()
独占鼠标控制权以及所有touchPoints ,并调用setKeepTouchGrab()和setKeepMouseGrab(),以确保任何通过filters 处理其子项事件的父项都无法接管这些控制权。
© 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.