Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Residual lines moving QGraphicsRectItem

    General and Desktop
    1
    2
    318
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ivanicy
      ivanicy last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ivanicy
        ivanicy last edited by

        Using the repaint function in QGraphicsView class solves the problem.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post