无需多点触控设备的捏合模拟
我正在 Windows 操作系统中开发一个 C++ 项目,我需要在没有多点触控设备的情况下模拟捏合等多点触控手势。类似于 Iphone,用户可以通过按住选项键来模拟捏合。 我想知道是否可以通过QT之类的框架来实现?
I am working on a c++ project in windows OS where I need to simulate multitouch gesture like Pinch without multitouch device.Similar to Iphone where user can simulate pinch by holding option key.
I want to know whether this can be achieved through Framework like QT ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当然,只需在按下该修饰符时在 mouseMoveEvent 中缩放或旋转即可。
我认为生成实际的 QTouchEvents 不值得这么麻烦。
Sure, just zoom or rotate in the mouseMoveEvent, when that modifier is pressed.
I don't think generating actual QTouchEvents is worth the trouble.
据我了解,您想使用按钮导航图表时间线?如果是这样,这就是我在我的项目中应用的:
这会将您的图表滚动到您之前拥有的数据集,并且时间跨度与您当前的时间跨度相同。例如:如果您的图表上显示了从 4 月 29 日到 4 月 30 日的数据,这会将显示移动到 28 日到 29 日的时间跨度。如果您希望它继续前进,只需将其设置为
enddate =Extremes.max + Interval; begginingdate =Extremes.min+interval;
抱歉,如果这不是您要找的,但我真的明白这就是您要问的。
问候
From what i understood you want to navigate the chart timeline with buttons? If so this is what i applied in my project:
this will scroll your chart to the previous set of data you have on it, with the same timespan you currently have. Eg: if you have data from the 29th of april to the 30th of april displayed on your chart this will move the display to the 28th-29th timespan. If you wish it to move forward just make it
enddate = extremes.max + interval; begginingdate = extremes.min + interval;
Sorry if this isn't what you were looking for but i truly understood this was what you were asking.
Regards