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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.