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

QIcon::availableSizes() return duplicates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.1
    • GUI: High-DPI
    • None
    • c53b91cc1 (dev), 43c220149 (6.7)

    Description

      if both foo.pgn and foo@2.png are added to a QIcon, then availableSizes() will return twice the same size.

      This is misleading because the reality is that the icon contains a pixmap of 16x16 pixels and another one of 32x32 pixels.

      Is that normal? At least this is unexpected and should be documented.

      With HDPI, it will be better to have an enhanced "availableSizes()" that also returns the pixmap device pixel ratios.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            philippe philippe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes