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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.5, 5.13.1, 5.14.0 Alpha
    • 5.11.2
    • GUI: Painting
    • None
    • Kubuntu 18.04 x86_64
    • Linux/X11
    • 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

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

        Activity

          People

            vgt Eirik Aavitsland
            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