Hey guys,
I want to add a widget into my mainwindow UI where the user can drag the control points of a cubic bezier curve to reshape it how they see fit. I envision that this would involve some kind of QPainterPath instance tied with some mouse event logic. And I know that QPainterPath has a cubicTo function which creates a cubic bezier curve where you input the end point and control points, so I'm wondering if I could link up the mouse event logic to those control points to move the bezier around. As you can see I have a basic idea, but I have hit a wall with the little details and am having trouble understanding how all of this connects and how to properly implement this. If anyone can offer a solution for how to accomplish this, I would appreciate it dearly.
I don't really have any code to share because I haven't been able to get the QPainterPath to work with my UI :(
Any guidance would be greatly appreciated.
~Luke