We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 40e924b + 55a5e20 commit a2a0447Copy full SHA for a2a0447
qrkernel/platformInfo.cpp
@@ -135,7 +135,7 @@ void PlatformInfo::enableHiDPISupport()
135
// Let Windows decide.
136
if(auto SetProcessDPIAware_ = (SetProcessDPIAware_t)QLibrary::resolve("user32", "SetProcessDPIAware")) {
137
if(SetProcessDPIAware_()) {
138
- qputenv("QT_DEVICE_PIXEL_RATIO", QByteArray("1"));
+ qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", QByteArray("1"));
139
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
140
} else {
141
auto err = GetLastError();
0 commit comments