disable HighDPI scaling on Linux

This commit is contained in:
tobtoht 2022-12-27 13:39:53 +01:00
parent 708832d7fd
commit 6a0cd06d4c

View file

@ -37,6 +37,11 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
}
#endif
// Disable High DPI scaling on Linux for now
#if defined(Q_OS_LINUX)
qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
#endif
QStringList argv_;
for(int i = 0; i != argc; i++){
argv_ << QString::fromStdString(argv[i]);