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

QIcon ignores high DPI setting on pixmaps

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.12.3, 5.15.2
    • None
    • tested on mac with hidpi monitor
    • All

    Description

      QIcon doc suggests using files to create Hi DPI icons. but if that's not possible, because you programmatically create QPixMaps, or because your existing subsystem uses QPixMaps for everything, or any other valid reason, then it is not possible to create Hi DPI QIcons.

      When attempting to create QIcon from QPixMap, you'd expect to be able to do this:

      qPix->setDevicePixelRatio(devicePixelRatio());
      QIcon icon(qPix);

      and have the aspect ratio to be preserved in the icon, but it is not

      previously reported here, but then ignored for some reason?

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              davecotter David M. Cotter
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes