I am doing a drawing application, and the idea of adding a new line to a QGraphicsScene just to allow the users to draw a line from point A to point B looks unnecessarily contrived. Is it possible for me to overload QGraphicsView::paintEvent() and to get a QPainter there? I have tried, but it is not working.

Any advice would be welcomed.