My software runs on Windows 7 and up and was developed with 100% dpi scaling (Control Panel > Make text and other items larger or smaller) with Qt 5.8.
When my users have their dpi scaling set to something like 150%, all the text and layout spacing increases in size, as they should, but EVERYTHING ELSE is untouched.
The result is a broken GUI with text way too big for the other elements.
I've researched as much as I could and the "simple fix" is to set the environment variable QT_AUTO_SCREEN_SCALE_FACTOR
to true.
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
is what I added as the first line in my main.cpp.
Absolutely no effect whatsoever. The only thing that has any effect at all is qputenv("QT_SCALE_FACTOR", "1.5");
however this is definitely not what I want at all.
How can I tell the rest of my software to scale accordingly?
Thanks for your time!
EDIT:
This is my bug https://bugreports.qt.io/browse/QTBUG-55654