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

QImageReader fails to set the devicePixelRatio for @3x images and bigger

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11.2
    • Fix Version/s: 5.12.5, 5.13.1, 5.14.0 Alpha
    • Component/s: GUI: Painting
    • Labels:
      None
    • Environment:
      Kubuntu 18.04 x86_64
    • Platform/s:
      Linux/X11
    • Commits:
      3797704c4ff0d91f544efa791973eced07c3ef02 (qt/qtbase/5.12)

      Description

      I tried to load an image using the naming scheme form the documentation, but I found, that this doesn't work with @3x images: looks like the devicePixelRatio isn't set properly.

      I found in the source code, that the QImageReader can only recognize @2x in an image name, unlike the QIcon which has generic code to handle this name suffix.

        Attachments

        For Gerrit Dashboard: QTBUG-76273
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              vgt Eirik Aavitsland
              Reporter:
              nkrupenko.nvidia Nikita Krupenko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes