You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set some Qt settings to play nicer on High DPI displays
`labscript_utils.splash` is the first place a `QApplication` gets
created for all of our apps. So setting these settings there applies
them to all our applications, although they are also needed for the
splash screen itself to be scaled better on High DPI displays.
`AA_EnableHighDpiScaling` scales all pixel metrics to the device pixel
ratio - so this means curved edges and padding and whatnot get scaled
up, as well as the size of some pixmaps.
`AA_UseHighDpiPixmaps` means to use high DPI pixmaps for icons etc,
directly, rather than rendering them at the lower resolution and then
scaling them up (not sure why anyone would want the latter behaviour).
Strangely, high resolution pixmaps *are* used when
`AA_EnableHighDpiScaling` is *off*. It's only when it is turned on that
they get downscaled and then upscaled again and end up blocky.
0 commit comments