QML 中的多点触摸
我是 QML 的新人。我正在尝试开发一架由白色和黑色按钮组成的钢琴。但我无法像用多个手指弹奏真正的钢琴那样对钢琴的按钮进行多次触摸。我该怎么做?你能帮我解决这个问题吗?
我正在等待你的答复。 提前致谢。
I am new at QML. And I am trying to develop a piano consisting of white and black buttons. But I could not do multi touching to the buttons of the piano just like playing the real piano by using many fingers. How can I do this? Can you please help me in this subject?
I am waiting your answer.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看看这个:http://blogs.forum.nokia.com/blog/lauri-jaaskelas-forum-nokia-blog/2011/02/03/raw-multitouch-pointer-events-in-qml更新
:这更好:http ://labs.qt.nokia.com/2011/02/08/a-toucharea-for-qml/
Take a look at this: http://blogs.forum.nokia.com/blog/lauri-jaaskelas-forum-nokia-blog/2011/02/03/raw-multitouch-pointer-events-in-qml
Update: this is even better: http://labs.qt.nokia.com/2011/02/08/a-toucharea-for-qml/
目前官方不支持多点触控,但 qt-labs 中有一些代码。
看看
Multitouch is not officially supported right now, but there is some code in qt-labs.
Have a look at https://bugreports.qt.io/browse/QTBUG-11638?focusedCommentId=137178&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-137178
对于未来的提问者:
使用QT5。
引入了 MultiPointTouchArea ,它可以处理多个触摸观点。
For future askers:
Use QT5.
There is introduced MultiPointTouchArea which can handle more than one touch point.