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

GUI: distorted display in case of changed layout scale on Windows ONLY after GUI launch #85

Open
mhmdkanj opened this issue Jan 13, 2021 · 0 comments
Labels
known-limitation This problem is known and will unlikely be fixed module:gui prio:low

Comments

@mhmdkanj
Copy link
Collaborator

This issue complements issue #83 .
Here, the GUI layout is distorted when display settings on Windows (the layout or item sizes) are changed after the GUI is already launched.

  • Setting DPI Unawareness for Windows, or even System-wide DPI awareness (rather than the default Per-monitor awareness) did not do the trick - at least we could not retain the GUI resolution that way windows_api
  • Enabling High DPI at the Qt level also did not do the trick as the layout persisted to be distorted.

This was tested with Qt version 5.13 - there were some updates regarding the respective screen DPI functions in version 5.14 (reference) which could be tried out at some point.

Nevertheless in theory, the following workflow could also be attempted:

  • The scale size change could be captured using this signal in QScreen docs
  • Upon catching this change, the widgets are scaled appropriately (preferably automatically, or worst-case manually)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
known-limitation This problem is known and will unlikely be fixed module:gui prio:low
Projects
None yet
Development

No branches or pull requests

2 participants