drace icon indicating copy to clipboard operation
drace copied to clipboard

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

Open mhmdkanj opened this issue 4 years ago • 0 comments

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)

mhmdkanj avatar Jan 13 '21 15:01 mhmdkanj