How do I disable high DPI scaling in Qt application?
I've tried QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
as the first line in main() — no effect.
Asked
Active
Viewed 377 times
0

Bibasmall
- 33
- 4
-
If you are on Windows, the system will scale your app anyway. If you really don't want scaling, set `dpiawareness` to `PerMonitorV2` and set devicePixelRatio in Qt to `1.0`. – Osyotr Oct 17 '22 at 00:01