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

QIconEngine::actualSize device pixel ratio awareness

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9.1
    • GUI: High-DPI
    • None
    • All

      virtual QSize QIconEngine::actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state);

      The docs state that it should return logical size. 

      The default icon engine for pngs returns device dependent pixels.

      How should an implementation find out the DPR to compute the logical size?

      IIUC it cant reliably for the window where the icon is used. This should probably be passed by the client code but the api does not allow it.

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

            sorvig Morten Sørvig
            manuelschneid3r Manuel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes