Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Drawing a Bezier curve in QGraphicsScene[SOLVED]



  • Hi,
    In my application I have to draw an Edge (curve) defined by 10 control points (Spline) as a QPainterPathItem in a graphic scene. The QPainterPath class provides only two functions to draw Bezier curves (4 control points) which are : cubicTo() and quadTo().

    Is theire any solution to do that such as transforming the Spline to a Bezier curves ?

    thanks in advance.



  • Ok, I have used cubicTo() since a spline is a sequence of Bezier curves :)


Log in to reply