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. QGraphicsPixmapItem is not correctly updated when the pixmap is big.

QGraphicsPixmapItem is not correctly updated when the pixmap is big.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 177 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.
  • WotanW Offline
    WotanW Offline
    Wotan
    wrote on last edited by
    #1

    I am trying to do an application to work on some of my astrophotos.

    But I have issues with the display of the big pictures.

    This is done of a QMainWindow with a QMdiArea where every QMdiSubWindow contains a QGraphicsView which shows a QGraphicsScene which contains just one QGraphicsPixmapItem. I do some zoom on this picture.

    If I set the mouse other the picture (1600x1200) and play with the wheel of my mouse, this will change the zoom of the picture. In the output of the application I see that every call to the QGraphicsView::paintEvent() is followed by a call to QGraphicsPixmapItem::paint()

    But now if I open a bigger picture (6000x4000) and then I play with the wheel of the mouse, I see that not every call to QGraphicsView::paintEvent() is followed by a call to QGraphicsPixmapItem::paint() which of course makes the picture disappeared.

    Could you please tell me what is going on ? Why did the pixmap is not updated ? What is the relation with the size of the picture ?
    Is there a way to force the call to QGraphicsPixmapItem::paint() each time I go through QGraphicsView::paintEvent() ?

    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