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

Residual lines moving QGraphicsRectItem



  • Hello!!

    I have a QGraphicsView with a QGraphicsScene. I have drawn a QGraphicsRectItem with nodes topleft and bottomRight. Dragging this nodes I can resize the QGraphicsRectItem. The problem is, when I resize it, residual lines appear. (see attached image)

    How can I fix it?

    Thank you very much!!

    0_1505377026248_residualLines.PNG



  • Using the repaint function in QGraphicsView class solves the problem.


Log in to reply