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.
Forum Updated to NodeBB v4.3 + New Features

QGraphicsView repaint problem.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.4k 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 11 Feb 2013, 08:25 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 11 Feb 2013, 11:07 last edited by
      #2

      maybe your items boundingrect is implemented incorrectly?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anticross
        wrote on 11 Feb 2013, 16:51 last edited by
        #3

        How can i repaint all my scene ?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tzander
          wrote on 11 Feb 2013, 17:13 last edited by
          #4

          myQGraphicsView->update() might do that :)

          1 Reply Last reply
          0

          1/4

          11 Feb 2013, 08:25

          • Login

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