I'm using pyqt to try to create an application which display images and curves.
To draw bezier curves, I found the QPainterPath class and specifically QpainterPath.cubicTo. However, I don't understand how this class must be used. In which widget should I draw my curves?
I see there are Qpainter and QGraphicsView/QGraphicsScene, but I don't know how to use my QPainterPath
with them.
Do you have any example of the use of QPainterPath
with pyqt/pyside? (for example, a simple window which displays a cubic bezier curve)