Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Enable high-DPI scaling to support 4k screens #2404
This enables coordinate system scaling for high-DPI displays, which enforces correct proportions even on small 4k displays. The icons are scaled up without interpolation, which makes them crisp, but a bit pixelated. A new scalable icon set will solve this problem, but is not scope of this patch.
As a small extra cookie, I snuck in enforcement of our icon set for the message box close icon (which has displayed a weird box on my KDE system ever since #2317 was merged).
Motivation and context
Icons were tiny, widgets had inhomogeneous proportions and windows were way too small as a result.
How has this been tested?
Tested on a 13.3" 4k Dell InfinityEdge display under Windows 10, works perfectly.
I also tested it in an Ubuntu 18.10 VM. It works in principle, but Gnome does not set all required properties. For Qt to pick up the correct scaling, DPI may need to be set manually using
If the fonts are still slightly off, they can be corrected by also setting
Screenshots (if appropriate):
Types of changes