Skip to content

Commit 8748c27

Browse files
committed
Use internal scaling on all platforms
1 parent 6250afe commit 8748c27

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

qrkernel/platformInfo.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,7 @@ void PlatformInfo::enableHiDPISupport()
125125
&& !qEnvironmentVariableIsSet("QT_AUTO_SCREEN_SCALE_FACTOR")
126126
&& !qEnvironmentVariableIsSet("QT_SCALE_FACTOR")
127127
&& !qEnvironmentVariableIsSet("QT_SCREEN_SCALE_FACTORS")) {
128-
// Only if there is no attempt to set from the system environment
129-
if (QOperatingSystemVersion::current().type() == QOperatingSystemVersion::OSType::Windows) {
130-
// DpiAware is set to true in the application manifest
131-
// And now we rely on Windows compatibility feature
132-
// Probably, even this may be useful: QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
133-
} else {
134-
// For Linux and macOS Qt does a good job
128+
// Only if there is no attempt to set from the system environment
135129
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
136-
}
137130
}
138131
}

0 commit comments

Comments
 (0)