我应该在哪里捕获触摸事件以在 QGraphicsScene 上绘画?
我想使用我的 fingerpaint 示例重新实现="http://doc.trolltech.com/latest/qgraphicsscene.html" rel="nofollow">QGraphicsScene 而不是 QWidget。然而,我找不到这方面的例子,所以我不确定我是否应该捕获视图中的事件并将它们传递到场景或其他地方。这里有什么建议?
I want to reimplement the Qt fingerpaint example using my QGraphicsScene rather than a QWidget. However I cannot find an example of this so am unsure if I should capture the events at the view and pass them down to the scene or something else. What is the advice here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
捏缩放示例怎么样?它使用 QGraphicsView 作为触摸区域。
How about the the pinch zoom example? It uses a QGraphicsView as the touch area.