when using a windows device with small screen (zoom 125%)
dialogs are opened shifted to top left like the following image:
Expected behavior: to render correctly in the middle:
Why this happen?
since we migrated to PyQt6 from PyQt5 in order to extend support for more devices, especially ARM based processors (mainyl apple silicon)
we used QtCore.Qt.HighDpiScaleFactorRoundingPolicy to fix the default zoom behavior made by PyQt6
our suggestion to the most straightforward solution is to shift all dialogs internally to the middle, by capturing the screensize and shifting it accordingly, we made similar behavior in splash screen
when using a windows device with small screen (zoom 125%)
dialogs are opened shifted to top left like the following image:
Expected behavior: to render correctly in the middle:
Why this happen? since we migrated to PyQt6 from PyQt5 in order to extend support for more devices, especially ARM based processors (mainyl apple silicon) we used
QtCore.Qt.HighDpiScaleFactorRoundingPolicy
to fix the default zoom behavior made by PyQt6Check line 20 in
__main__.py
our suggestion to the most straightforward solution is to shift all dialogs internally to the middle, by capturing the screensize and shifting it accordingly, we made similar behavior in splash screen
Check lines 31 to 39 in
__main__.py