Can I set the QT_AUTO_SCREEN_SCALE_FACTOR 1 behavior via an API call rather than by the environment variable? I want to detect if my Qt application is running on a
QT_AUTO_SCREEN_SCALE_FACTOR 1
The following should work
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");