Skip to content

Commit a2a0447

Browse files
authored
Merge pull request #637 from khodand/khodand-patch-2
Fix QT_DEVICE_PIXEL_RATIO deprecation warning [INSTALLER]
2 parents 40e924b + 55a5e20 commit a2a0447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qrkernel/platformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void PlatformInfo::enableHiDPISupport()
135135
// Let Windows decide.
136136
if(auto SetProcessDPIAware_ = (SetProcessDPIAware_t)QLibrary::resolve("user32", "SetProcessDPIAware")) {
137137
if(SetProcessDPIAware_()) {
138-
qputenv("QT_DEVICE_PIXEL_RATIO", QByteArray("1"));
138+
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", QByteArray("1"));
139139
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
140140
} else {
141141
auto err = GetLastError();

0 commit comments

Comments
 (0)