Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
None
Description
When QImage is loaded from image file which doesn't have dpi specified, default dpi (qt_defaultDpi()) is used for the image. It would be nice to allow to specify default dpi for images, as it sometimes may be necessary to specify other default dpi.
For example, I work on xps renderer. Xps specification requires that images without dpi specified use 96dpi.
Currently I use workaround - load image, set its dpi and load it again. When image file doesn't have dpi specified, then dpi set by me stays unchanged.