GestureEvent QML Type
与手势启动信号一起给出的参数。更多
Import Statement: | import QtQuick |
属性
- dragThreshold : real
- touchPoints : list<TouchPoint>
方法
- grab()
详细说明
GestureEvent 对象包含当前的触摸点(您可以选择将其解释为手势)和一个可调用的方法,用于专门抓取相关点。
属性文档
dragThreshold : real |
该属性是系统对手指在被解释为拖动之前必须移动的距离的设置。它来自QStyleHints::startDragDistance()。
touchPoints : list<TouchPoint> |
该属性保存当前触摸点的集合。
方法文档
grab() |
获取对鼠标和所有touchPoints 的独家抓取,并调用setKeepTouchGrab() 和setKeepMouseGrab() 以防止任何filters 其子项事件的父项接管抓取。
© 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.