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

QImage::convertToFormat(format, colorTable) doesn't preserve devicePixelRatio

    XMLWordPrintable

Details

    • 66a44f4ebac0dc20422477afe794fa712dea01bc (qt/qtbase/dev) e065582744b5632edaa93550a482ae29eeb02734 (qt/qtbase/6.2) c9b23b6d282e5b4e1cc596083ec11ed26cf8dcdf (qt/tqtc-qtbase/5.15)

    Description

      QImage's devicePixelRatio is not preserved after calling QImage::convertToFormat(format, colorTable).

      QImage::convertToFormat(format) internally calls copyMetadata() to copy the devicePixelRatio to the converted QImage.
      But QImage::convertToFormat(format, colorTable) doesn't.

      The devicePixelRatio of the converted QImage is always 1.

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            mingxiang Mingxiang Xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes