TouchPoint QML Type
描述MultiPointTouchArea 中的触摸点 ... 更多...
Import Statement: | import QtQuick |
属性
- ellipseDiameters : size
- pointId : int
- pressed : bool
- pressure : real
- previousX : real
- previousY : real
- rotation : real
- sceneX : real
- sceneY : real
- startX : real
- startY : real
- uniqueId : pointingDeviceUniqueId
- velocity : vector2d
- x : real
- y : real
详细描述
TouchPoint 类型包含触摸点的相关信息,如当前位置、压力和面积。
属性文档
这些属性包含触摸点当前状态的附加信息。
pressure
是一个范围在 0.0 至 1.0 之间的值。velocity
是一个向量,其大小以每秒像素数为单位。
并非所有触摸设备都支持速度。如果不支持速度,则报告为 0,0。
ellipseDiameters : size |
该属性包含代表触摸点覆盖区域的椭圆的主轴和次轴。
pointId : int |
该属性包含触摸点的点 ID。
MultiPointTouchArea 中的每个触摸点都有一个唯一的 id。
pressed : bool |
该属性显示触摸点当前是否被按下。
rotation : real |
该属性显示触摸点的角度方向。返回值的单位是度,其中零(默认值)表示手指或标记向上,负角表示向左旋转,正角表示向右旋转。大多数触摸屏无法检测旋转,因此零是最常用的值。
另请参阅 QEventPoint::rotation()。
uniqueId : pointingDeviceUniqueId |
该属性保存触摸点或标记的唯一 ID。
它通常为空,因为触摸屏无法唯一识别手指。但如果设置了该 ID,就能唯一识别特定的标记(靶标)。
要解释该 ID 的内容,需要了解所使用的硬件和驱动程序(例如各种基于 TUIO 的触摸屏)。
© 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.