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

QPainter::drawImage draws images in different places depending on image format

    XMLWordPrintable

Details

    • 7a146019e4 (qt/qtbase/dev) 7a146019e4 (qt/tqtc-qtbase/dev) ad646f62fb (qt/qtbase/6.4) ad646f62fb (qt/tqtc-qtbase/6.4) 4fccc59e79 (qt/tqtc-qtbase/6.2) 4fccc59e79 (qt/tqtc-qtbase/6.2.5) 539296755b (qt/qtbase/6.3) 539296755b (qt/tqtc-qtbase/6.3)

    Description

      When drawing two images of the same size in the same place, the images don't actually appear in the same place if one of them is premultiplied and the other isn't. I've attached a code sample to reproduce the issue. I've also attached a screenshot. I'm not sure why the scroll bars are messed up but I'm not concerned about that. The top image is not drawn in the same place as the bottom image. If the code sample is edited so that both images are the same format, the problem disappears.

      Attachments

        1. main.cpp
          1 kB
        2. main-1.cpp
          1 kB
        3. screenshot.png
          screenshot.png
          85 kB
        For Gerrit Dashboard: QTBUG-85109
        # Subject Branch Project Status CR V

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            kerndog73 Indi Kernick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews