Skip to content
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

DPI Scaling between 4k and 2k screens on Windows #36979

Closed
reyemtm opened this issue Jun 4, 2020 · 7 comments
Closed

DPI Scaling between 4k and 2k screens on Windows #36979

reyemtm opened this issue Jun 4, 2020 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers GUI/UX Related to QGIS application GUI or User Experience Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)

Comments

@reyemtm
Copy link

reyemtm commented Jun 4, 2020

Describe the bug

How to Reproduce

QGIS and OS versions

Additional context

QGIS Version 3.10.5 Standalone
OS - Windows 10

Screen Resolution on Laptop - 4K 3840x2160
Screen Resolution on External Screen - 2K 2560x1440

When I open QGIS on the laptop the application window icons and all look as they should. When I move the application window to the 2K screen, the application does not scale properly - icons are huge. Other windows apps will show this behavior if part of the application window is on both the 4k screen and the 2k screen, but when the app gets moved completely to the 2k screen the resolution of the app is scaled properly. Chrome is one example.

If there are settings or other options to help with this situation please let me know.

@reyemtm reyemtm added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jun 4, 2020
@gioman gioman added the GUI/UX Related to QGIS application GUI or User Experience label Jun 4, 2020
@elpaso
Copy link
Contributor

elpaso commented Jun 5, 2020

There are some QT environment variables that control DPI and scaling, AFAIK there isn't anything special about that in QGIS code.

You can have a look to: https://doc.qt.io/qt-5/highdpi.html#high-dpi-support-in-qt

I think this ticket should be closed as an upstream (QT) issue.

@elpaso elpaso added the Feedback Waiting on the submitter for answers label Jun 5, 2020
@reyemtm
Copy link
Author

reyemtm commented Jun 10, 2020

@reyemtm
Copy link
Author

reyemtm commented Jun 10, 2020

Workaround - but not sure the manifest file posted via #20017 is fully correct as it is from 2014. Sample File. Would be great if someone check that file that knows something about manifest files to see if it is correct and update as needed. The relevant settings in my manifest file are below. Again, this allows the application to scale properly over screens of different resolutions. I tried all of the settings and the system setting worked.

From the QT Documentation

System-DPI Aware | This level was introduced in Windows Vista. It differs from Per-Monitor DPI Aware only when multiple monitors are connected. Windows calculates a scaling that's suitable for all monitors connected.

Complete Working Manifest File

qgis-ltr-bin.exe.manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
  <asmv3:application>
    <asmv3:windowsSettings>
      <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">system</dpiAwareness>
    </asmv3:windowsSettings>
  </asmv3:application>
</assembly>

@github-actions
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Dec 23, 2020
@github-actions
Copy link

While we hate to see this happen, this Issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@gioman gioman added the Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...) label Jan 20, 2021
@oesteban-vx
Copy link

#43924 contains more information about this same issue.

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Apr 28, 2022
@widsuoids
Copy link

This issue can be fixed on Windows using the High DPI Settings in the properties:

QGIS Executable/shortcut -> right click: properties -> Kompatibility ->Change High DPI settings button -> select both checkboxes + System(Advanced) in the dropdown -> (re)start QGIS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers GUI/UX Related to QGIS application GUI or User Experience Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)
Projects
None yet
Development

No branches or pull requests

5 participants