From 3743da9b9fa17d7c524619dc53d91d57d86e03a2 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Sun, 21 Jul 2019 02:29:05 -0500 Subject: Add support for screen scaling under Windows/Linux. Seems that, unless you tell it to specifically, Qt insists on dealing with physical pixels instead of screen-scaled coordinates. So, i.e., on my 200%-scaled HiDpi display, everything was looking pretty small. --- quacker/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'quacker/main.cpp') diff --git a/quacker/main.cpp b/quacker/main.cpp index 78da436..adec32b 100644 --- a/quacker/main.cpp +++ b/quacker/main.cpp @@ -61,6 +61,7 @@ private: int main(int argc, char **argv) { + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QuackerApplication a(argc, argv); TopLevel topLevel; a.setTopLevel(&topLevel); -- cgit v1.2.3