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

QPainter::drawPixmap produces wrong output in some circumstances

    XMLWordPrintable

Details

    Description

      A widget based application displays an image with a zoom factor (for instance 4x) and the GUI handles rubber band selection of pixel aligned rectangle regions in the image.

      When switching from Qt 5.4.2 to 5.6.1, the widget repaint when using rubber band selection is totally corrupted.

      In the small example reproducing the issue, it seems the bug occurs only when both following conditions are met:

      • The QImage has been created from a user supplied memory buffer
      • The paint event is triggered by calling update() with a complex clip region containing at least two rectangles

      Attachments

        1. QTBUG-55645-qt542-good.png
          30 kB
          Etienne Sandré-Chardonnal
        2. QTBUG-55645-qt561-notgood.png
          34 kB
          Etienne Sandré-Chardonnal
        3. QTBUG-55645.zip
          6 kB
          Etienne Sandré-Chardonnal
        4. qtbug55645.zip
          4 kB
          Friedemann Kleint
        For Gerrit Dashboard: QTBUG-55645
        # Subject Branch Project Status CR V

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            galinette Etienne Sandré-Chardonnal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes