diff --git a/mac/app.info.plist.in b/mac/app.info.plist.in index 659f5c1c76f..79f1e7d2ee9 100644 --- a/mac/app.info.plist.in +++ b/mac/app.info.plist.in @@ -304,5 +304,14 @@ zh_CN zh_TW + LSEnvironment + + QT_AUTO_SCREEN_SCALE_FACTOR + 1 + + NSPrincipalClass + NSApplication + NSHighResolutionCapable + True diff --git a/src/app/main.cpp b/src/app/main.cpp index 34b6b39a4ab..8f3132ac15f 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -783,6 +783,9 @@ int main( int argc, char *argv[] ) QgsApplication myApp( argc, argv, myUseGuiFlag, configpath ); #ifdef Q_OS_MAC + // Set hidpi icons; use SVG icons, as PNGs will be relatively too small + QCoreApplication::setAttribute( Qt::AA_UseHighDpiPixmaps ); + // Set 1024x1024 icon for dock, app switcher, etc., rendering myApp.setWindowIcon( QIcon( QgsApplication::iconsPath() + QStringLiteral( "qgis-icon-macos.png" ) ) ); #else