Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.0 Alpha
-
None
-
Windows 10, MSVC2015 U3, 64bit, Linux
-
91120599aee881bd1021087bae91fd1d5de46a4c (qtbase/5.9, 6.2.2017, 5.9)
Description
QApplication a(argc, argv);
QPixmap pm;
pm = QPixmap(100, 100);
pm.fill(Qt::red);
pm.setDevicePixelRatio(2);
QPainter p;
p.begin(&pm);
QPixmap pm2(pm);
p.end();
qDebug() << QT_VERSION_STR << pm << '\n' << pm2;
produces
5.9.0 QPixmap(QSize(100, 100),depth=32,devicePixelRatio=2,cacheKey=0x100000003) QPixmap(QSize(100, 100),depth=32,devicePixelRatio=1,cacheKey=0x400000001)
as opposed to
5.8.1 QPixmap(QSize(100, 100),depth=32,devicePixelRatio=2,cacheKey=0x100000003) QPixmap(QSize(100, 100),depth=32,devicePixelRatio=2,cacheKey=0x400000001)
Manifests a Qt Creator's mode bar looking all messed up on High DPI screens since it inserts QPixmaps with DPR=2 with active painters into QPixmapCache and later gets pixmaps with DPR=1 out of it.
Attachments
Issue Links
- is duplicated by
-
QTBUG-58645 REG [within 5.9] Fusion style buttons look messed up when High Dpi scaling is active
- Closed