Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.6.1
-
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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-119915 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
525426,2 | QIcon::availableSizes(): don't return duplicates | dev | qt/qtbase | Status: MERGED | +2 | 0 |
530116,2 | QIcon::availableSizes(): don't return duplicates | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |