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

QPainter::drawPixmap showing seams

    XMLWordPrintable

Details

    • macOS
    • 743c1cf96 (dev), f4cd58a9b (6.6)

    Description

      After upgrading to Qt 6.5.1 I've noticed that the drawPixmap method does not seem place pixmaps correctly when using floating point precision. The drawImage shows the same problem.

       

      The attached project when compiled will show grid of colored pixmaps where you'll notice that at some "zoom" levels, ie. the default 0.4, seams/gaps appear.

      This cannot be reproduced in Qt 5.15.10, and I haven't been able to find a workaround so it's a blocking issue for us in terms of upgrading.

      I have also tested with drawRect and that does not seem to cause seams to show either.

       

      Expected behavior:

      Seams does not appear

       

      Actual behavior:

      Seams appear between some tiles..

       

      Qt 6:

      Qt 5:

       

      Specs:

      MacBook Pro (Retina, 13-inch, Early 2015)

      Mac OS 12.6.7

      3.1 GHz Dual-Core Intel Core i7

      Attachments

        1. image-2023-08-21-19-47-16-201.png
          image-2023-08-21-19-47-16-201.png
          250 kB
        2. image-2023-08-21-19-47-31-569.png
          image-2023-08-21-19-47-31-569.png
          253 kB
        3. TilingIssue.zip
          5 kB
        4. video_paint_aa.mp4
          15.34 MB
        5. video_paint_no_aa.mp4
          19.87 MB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kagro Kaj Grönholm
              candyface Oliver Larsen
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes