Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsView repaint problem.
Qt 6.11 is out! See what's new in the release blog

QGraphicsView repaint problem.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.6k Views 1 Watching
  • 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 Offline
    A Offline
    Anticross
    wrote on last edited by
    #1

    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
    0
    • T Offline
      T Offline
      tzander
      wrote on last edited by
      #2

      maybe your items boundingrect is implemented incorrectly?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anticross
        wrote on last edited by
        #3

        How can i repaint all my scene ?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tzander
          wrote on last edited by
          #4

          myQGraphicsView->update() might do that :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved