Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.15.2
-
None
-
66a44f4ebac0dc20422477afe794fa712dea01bc (qt/qtbase/dev) e065582744b5632edaa93550a482ae29eeb02734 (qt/qtbase/6.2) c9b23b6d282e5b4e1cc596083ec11ed26cf8dcdf (qt/tqtc-qtbase/5.15)
Description
QImage's devicePixelRatio is not preserved after calling QImage::convertToFormat(format, colorTable).
QImage::convertToFormat(format) internally calls copyMetadata() to copy the devicePixelRatio to the converted QImage.
But QImage::convertToFormat(format, colorTable) doesn't.
The devicePixelRatio of the converted QImage is always 1.