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

Bad QGraphicsPixmapItem scaling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.6.1
    • 6.5.3
    • GUI: Other
    • None
    • macOS, Windows

      We have an application with a QGraphicsView. The view shows a map made up by squared tiles. Each tile is a QGraphicsPixmapItem.

      With some fractional scaling applied to the items, they are not properly scaled showing gaps between them

       

      The problem disappears if the view is rendered using OpenGL or if a smoothing transformation is applied to the items.

      We found this issue porting our application from Qt 5.15.9 to Qt 6. The items positioning and scaling was properly working in Qt 5.

      Attached is an example showing the issue. In that example there are gaps between items in the 3rd and 4th column and row

       

        1. qgraphicsview_test.zip
          1.07 MB
          Calogero Mauceri
        2. Screenshot 2023-11-22 16.29.21.jpg
          364 kB
          Calogero Mauceri
        3. Screenshot 2023-11-27 14.12.14.jpg
          291 kB
          Calogero Mauceri
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mauceri Calogero Mauceri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes