Bug 474260 - With less than 100% scale on Wayland, UI elements do not scale down correctly
Summary: With less than 100% scale on Wayland, UI elements do not scale down correctly
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-09-07 15:06 UTC by Noah Davis
Modified: 2023-09-07 15:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
bad scaling for KQuickStyleItem (70.35 KB, image/png)
2023-09-07 15:08 UTC, Noah Davis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Noah Davis 2023-09-07 15:06:42 UTC
SUMMARY
On Wayland, System Settings allows setting a screen scale less than 100%. When using such a screen scale, UI elements are not scaled down correctly and appear to be clipped off on the right and bottom sides.

STEPS TO REPRODUCE
1. Set screen scale to 50% or 75% in the Display Configuration KCM
2. Open any app that uses qqc2-desktop-style.

OBSERVED RESULT
UI elements with their appearance coming from a qqc2-desktop-style KQuickStyleItem aren't scaled down correctly.

EXPECTED RESULT
UI elements should be scaled down correctly like the Basic Qt Quick Controls style.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230828
KDE Plasma Version: 5.27.80 (Plasma 6 git master)
KDE Frameworks Version: 5.240.0
Qt Version: 6.5.2
Kernel Version: 6.4.11-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 1 Noah Davis 2023-09-07 15:08:25 UTC
Created attachment 161495 [details]
bad scaling for KQuickStyleItem
Comment 2 David Edmundson 2023-09-07 15:09:24 UTC
Fixed by 21b5b6ed67ff7bfcda40125708314618935355aa in QtWayland    (6.6)

client: Clamp fractional scaling to be >= 1.0