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

QGraphicsPixmapItem::setScale puts image pixels at inconsistant positions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10.0
    • Widgets: GraphicsView
    • None
    • The behavior has been observed in QT 5.10, 5.6, 4.8, on Windows 10 and Ubuntu 16.04.

    Description

      When zooming on an image using QGraphicsPixmapItem::setScale, pixels are jumping around. This can be seen clearly at big zoom factors. See also question on Github.

      I am attaching a standalone .cpp file where the zoom factor is controlled with the mouse wheel.

      Interestingly, as discussed on Github, when using SmoothPixmapTransform, the pixel positions remain stable. However the image is then bilinearly interpolated, which is undesirable in my case.

      This bug may or may not be related to bug QTBUG-60782.

      Attachments

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

        Activity

          People

            bibr Andreas Aardal Hanssen
            daan Piet Daan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes