QTapGesture Class
QTapGesture 类描述了用户执行的轻触手势。更多内容...
| 头文件: | #include <QTapGesture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| 继承自: | QGesture |
属性
- position : QPointF
公共函数
| virtual | ~QTapGesture() |
| QPointF | position() const |
| void | setPosition(const QPointF &pos) |
详细说明
有关 Qt 中手势处理的概述以及在应用程序中使用手势的信息,请参阅《Qt Widgets 与图形视图中的手势》文档。
另请参阅 QPanGesture 和QPinchGesture 。
属性文档
position : QPointF
该属性保存了轻触的位置
访问函数:
| QPointF | position() const |
| void | setPosition(const QPointF &pos) |
© 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.