为什么我在 Qt 中得到 NativeGestures 而不仅仅是 Gestures
我认为我应该按照文档查看我的 Qt 应用程序的手势和触摸事件:
http://doc.qt.nokia.com/latest/gestures-overview.html
但是,我收到的事件是 QEvent::NativeGesture,而不是文档中讨论的 QEvent::Gesture。我发现的 Qt 实验室博客文章说 NativeGestures 应该转换为 Qt Gestures:
http://labs.qt.nokia.com/2009/04/23/gestures-in-short/
既然我有触摸屏,我是否必须重新编译 Qt?
(我有 Windows 7 和戴尔触摸屏显示器,所以我有设备)
I thought I should take a look at Gesture and touch events with my Qt application following the documentation:
http://doc.qt.nokia.com/latest/gestures-overview.html
However the event I am getting is a QEvent::NativeGesture not the QEvent::Gesture the documentation talks about. The Qt labs blog post I found says NativeGestures should be converted to Qt Gestures:
http://labs.qt.nokia.com/2009/04/23/gestures-in-short/
Do I have to recompile Qt now that I have a touch screen?
(I have Windows 7 with a Dell touch screen monitor so I have the equipment)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了回答我自己的问题,我认为我需要在抓取手势的同时接受触摸事件。最初我只是抓住这个手势。
To answer my own question, I think I need to accept the touch events at the same time as grabbing the Gesture. Where as initially I was just grabbing the gesture.