Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.9.5, 5.9.7
-
None
-
macOS Mojave (10.14)
Description
If you run the attached program on a "normal" screen, i.e. with a device pixel ratio of 1, then everything will be as expected. However, if you run it on a HiDPI screen, e.g. with a device pixel ratio of 2, then QIcon::pixmap() doesn't return the expected pixmap when Qt::AA_UseHighDpiPixmaps is set (look at the top right icon). The icon looks blurry, which is annoying when you need both a plain version of an icon and another with an overlaid icon, since they look different (besides the overlay).
Note: regarding the icons when Qt::AA_UseHighDpiPixmaps is set, I would actually expect them to be of better quality and they are in my application, but for some reasons they are not in this sample application. Still, the point I want to raise is with regards with "normal" vs. HiDPI screens and Qt::AA_UseHighDpiPixmaps set.