How to apply QT_DEVICE_PIXEL_RATIO to all GUI elements?
Unlike Mac OS X, where device pixel ratio is automatically adjusted for Retina display, Windows environment doesn't seem to give any hint to use dpr 2.0 for high dpi + relatively small sized screens.
I understand QT_DEVICE_PIXEL_RATIO environment variable became available for windows since Qt 5.4, but setting QT_DEVICE_PIXEL_RATIO to 2 using
setx QT_DEVICE_PIXEL_RATIO 2
doesn't seem to affect some parts of GUI elements.
For example, QMessageBox shows 2x sized window but text and buttons still remained at 1x size. Also context menus also stayed at 1x size.
Did anyone run into similar problem and found solution to this issue?
Thanks in advance.