From 9f4b41afd334738892328f3cceaf00ae1463ece3 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Tue, 1 Oct 2024 11:26:01 +0900 Subject: [PATCH] enable highdpi display --- sources/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sources/main.cpp b/sources/main.cpp index cd319e8..e82ea34 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -23,6 +23,11 @@ FILE* Logger::file = nullptr; int main(int argc, char* argv[]) { Logger::Initialize("Log.txt"); + + // Enables high-DPI scaling. This attribute must be set before QApplication is + // constructed. Available from Qt 5.6. + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QApplication a(argc, argv); a.setApplicationName("IwaWarper"); a.setApplicationVersion("1.0.1");