Qt Forum

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

    Call for Presentations - Qt World Summit

    QGraphicsView repaint problem.

    General and Desktop
    2
    4
    2142
    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.
    • A
      Anticross last edited by

      I've got class based on QGraphicsView. And I need to redraw some QGraphicsItem inside. I do this: @station->update(station->boundingRect());
      invalidateScene(sceneRect(),QGraphicsScene::AllLayers);
      updateSceneRect(sceneRect());@ where station is my QGraphicsItem based class object. But it update not full object, only a part of it. When i move mouse inside widget which contains view it repaints. What is the reason ?

      1 Reply Last reply Reply Quote 0
      • T
        tzander last edited by

        maybe your items boundingrect is implemented incorrectly?

        1 Reply Last reply Reply Quote 0
        • A
          Anticross last edited by

          How can i repaint all my scene ?

          1 Reply Last reply Reply Quote 0
          • T
            tzander last edited by

            myQGraphicsView->update() might do that :)

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