Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.12.3, 5.15.2
-
None
-
tested on mac with hidpi monitor
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
- relates to
-
QTBUG-44486 QIcon has problem handling high DPI pixmaps
- Closed
-
QTBUG-90571 QIconButton does not provide high rez image when supplied
- Closed
-
QTBUG-73587 QIcon::pixmap() double scaling when Qt::AA_UseHighDpiPixmaps set
- Closed