diff options
author | John Fultz <jfultz@wolfram.com> | 2019-07-21 02:29:05 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-07-21 02:29:05 -0500 |
commit | 3743da9b9fa17d7c524619dc53d91d57d86e03a2 (patch) | |
tree | 2338be7d8b906762032a2da165523748aad28323 /quacker | |
parent | b67605814738d17484e508d037b8b1f09c27cab6 (diff) |
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.
Diffstat (limited to 'quacker')
-rw-r--r-- | quacker/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |