Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-86226

QGraphicsPixmapItem is not correctly updated when the pixmap is big.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.0
    • Widgets: GraphicsView
    • None
    • Linux 4.19.0-10-amd64
      Distribution debian Buster
      KDE
    • Linux/X11

    Description

      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. I have oversimplified my application to get only the display part and the zoom of an image; you will find it in attachement.

      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.

      Please open the project Imager.zip and launch it; then open the file LittlePicture.bmp; if you set the mouse other the picture and play with the wheel of your mouse, this will change the zoom of the picture. In the output of the application you will see that every call to the QGraphicsView::paintEvent() is followed by a call to QGraphicsPixmapItem::paint()

       

      But if now you open the file BigPicture.JPG and then you play with the wheel of the mouse, you will see that not every call to QGraphicsView::paintEvent() are followed by a call to QGraphicsPixmapItem::paint() which of course make 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 ?

       

      Attachments

        1. BigPicture.JPG
          7.71 MB
          fredericvansteenkiste
        2. Imager.zip
          12 kB
          fredericvansteenkiste
        3. LittlePicture.bmp
          5.49 MB
          fredericvansteenkiste
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bibr Andreas Aardal Hanssen
            fredericvansteenkiste fredericvansteenkiste
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes