-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable automatic high DPI scaling and fix incorrect map scale calculation #52972
Conversation
This causes wrong map scale display on high DPI screen
For the record, +1 to merge this; we should do it as soon as possible so it can be thoroughly tested prior to releasing 3.32. |
I've tested this, and while there's some regressions the end result is considerable better then the current state. Regressions I've spotted:
We also need to check if the default icon size calculation for new installs is still appropriate, or whether this should be hardcoded to 24 pixels now. |
Thank you for looking into this! I am facing the same regressions but have not yet been able to figure out what's causing these issues. |
Other potential regressions spotted:
|
@nyalldawson Probably another one to fix: the 3D Map view looks blurry and could probably get some attention. |
This PR enables automatic high DPI scaling which is not set by default in QT5. As this is not currently enabled, QGIS uses the default DPR of 1 on all devices (except if a custom environment variable is set at the OS level). This causes multiple UI scaling issues on high DPI screens.
Fixes (tested):
#49764
Possibly also fixes:
#40274
#52643
#25669
#25673
#52291