如何在Qt中以图形方式绘制回旋? [英] How to draw clothoids graphically in Qt?
问题描述
如何在Qt中实现?你知道我可以在Qt中运行的任何示例代码吗?
最好的方法可能是使用图形视图框架。
以下几个示例可帮助您开始使用图形视图示例页面。 图场景看起来像是您想要的一个很好的起点实现。
I am trying to build an application which the user can use to draw clothoids with the mouse, i.e. to set the start point and the end point of the spiral and then by dragging these points with the mouse he could also set the shape of the clothoid by modifying the start and end curvature. Probably for changing the curvature I will need to use the tangents though I am not sure of that.
How can one implement that in Qt? Do you know of any example codes that I could run in Qt?
The best approach would probably be to use the Graphics View Framework.
There are a few examples that should help you getting started in the Graphics View Examples page. The Diagram scene one looks like a good starting point for what you want to achieve.
这篇关于如何在Qt中以图形方式绘制回旋?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!