diff --git a/src/main.cpp b/src/main.cpp index 2b14af19671..76138ba9187 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,6 +51,12 @@ int main(int argc, char * argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); #endif +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + // Follow whatever factor the user has selected in the system settings + // By default the value is always rounded to the nearest int. + QGuiApplication::setHighDpiScaleFactorRoundingPolicy( + Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); +#endif // Setting the organization name results in a QDesktopStorage::DataLocation // of "$HOME/Library/Application Support/Mixxx/Mixxx" on OS X. Leave the