diff --git a/Charm/Charm.cpp b/Charm/Charm.cpp index e692784b..ed8ab61f 100644 --- a/Charm/Charm.cpp +++ b/Charm/Charm.cpp @@ -86,6 +86,9 @@ int main ( int argc, char** argv ) } try { +#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) + QGuiApplication::setAttribute( Qt::AA_EnableHighDpiScaling ); +#endif QApplication app( argc, argv ); const std::shared_ptr core( createApplicationCore( startupTask ) ); QObject::connect( &app, SIGNAL(commitDataRequest(QSessionManager&)), core.get(), SLOT(commitData(QSessionManager&)) );