KDE Bug 466373 – Qt apps don't use wp-fractional-scale-v1 for hidpi fractional scaling on Wayland
SUMMARY Qt client apps using system Qt 5.15.8 still use the old downscaling mechanism to deal with fractional scaling, instead of wp-fractional-scale-v1, leading to visual artefacts.
STEPS TO REPRODUCE
- Set "Scale" to fractional eg 135% in Display Configuration
- Open a Qt app
OBSERVED RESULT App is upscaled to 2x then downscaled. This produces aliasing artifacts as detailed previously here 1
EXPECTED RESULT Native scaling... like what is done by XWayland in "Apply scaling themselves" mode. See attached picture. On the left is XWayland (Platfom=xcb) and on the right Wayland.
SOFTWARE/OS VERSIONS KDE Neon based on ubuntu 22.04.2 (available in About System) KDE Plasma Version: 5.27.1 KDE Frameworks Version: 5.104.0 Qt Version: 5.15.8 libqt5core5a Version: 5.15.8+p22.04+tunstable+git20230209.0323-0 python3-pyqt5 Version: 5.15.9+dfsg-1+22.04+jammy+unstable+build21
ADDITIONAL INFORMATION
I believe the previous scaling is offered by Qt since 5.6 and is described here 2 and 3. And the new one was announced by Nate here 4.
I think the KWin part landed:
> wayland-info | rg frac
interface: 'wp_fractional_scale_manager_v1', version: 1, name: 10
but maybe the Qt patches were not added to Neon's patch collection? Is this 5 related? how can I verify if the Qt5 client libs have support?
I attach the small PyQt sample 6 used to show that the scale given to the app is 2x and the screen geometry and physicalDotsPerInch is fake (dpi 115.834 instead of 163), with system Qt 5.15.8.
20231016_120713, Neon_unstable:
With display at 120%, Pixel ratio is 2 and dpi is 96.