ayon-launcher
ayon-launcher copied to clipboard
QT: EnableHighDpiScaling is breaking ui on Linux
The AA_EnableHighDpiScaling
attribute being set on the QApplication on startup is breaking the UI on Linux Rocky 8.7 on a couple different 2560x1440 screens.
I have not found any reason for this yet, it seems to not accurately calculate size hints with this setting on. The addons run through the dcc QApplications run fine.
https://github.com/ynput/ayon-launcher/blob/de19dc09fdc57050f62775e0b477ecccb8fded4d/common/ayon_common/ui_utils.py#L24
Another workaround is setting an environment variable QT_FONT_DPI=96
.
I think for now I will use this, until I run into issues with 4k screens. I believe this is only an issue with X and might disappear on Wayland.
More information here:
https://stackoverflow.com/questions/59947058/why-doesnt-qtaa-disablehighdpiscaling-disable-high-dpi-scaling-and-why-does
https://bugreports.qt.io/browse/QTBUG-67928