We have various images in our application (displayed from a QPixmap in a QLabel) that appear at a reasonable size on non-high DPI screens but are shrunken on high DPI. The other UI elements look fine.
I've looked at the devicePixelRatioF() function but it always returns 1. On my system I have 150% scaling enabled so if I hardcode 1.5 as the scale factor then the images are of the expected dimensions relative to the window. The question is, how can I get the system scale factor so that I can make the application look consistent across systems with different DPI / scaling? As well as Windows, the application is built for Linux.
I would appreciate any advice.