Bug 483819 - If the system's configured scale is above 100%, some apps' elements will draw way too big, unless XWayland is used
Summary: If the system's configured scale is above 100%, some apps' elements will draw...
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-17 10:51 UTC by Isa
Modified: 2024-03-17 13:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Demonstration of the bug in LibreOffice. The lower screenshot shows the expected appearance, achieved with the XWayland workaround. (537.37 KB, image/png)
2024-03-17 10:51 UTC, Isa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Isa 2024-03-17 10:51:02 UTC
Created attachment 167364 [details]
Demonstration of the bug in LibreOffice. The lower screenshot shows the expected appearance, achieved with the XWayland workaround.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Go to System Settings > Display & Monitor > set Scale to 125%
2. Open LibreOffice and check out the size of the toolbar and other elements
3. Open any image in Gwenview > Show Editing Tools > Annotate and check the size of the toolbars on the left and on the bottom

OBSERVED RESULT
All elements of the windows are scaled up way above 125%. As a result, they take up a notable part of the screen. Some QT layouts end up bigger than their windows, making elements inaccessible.

EXPECTED RESULT
Apps should be scaled to the configured scale of 125%, and all elements should fit within their respective windows.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux 6.8.1-arch1-1 (64-bit)
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
This problem has appeared after upgrading to Plasma 6.
The workaround I've found for this is to force QT to use XWayland on per-app basis, for example: "QT_QPA_PLATFORM=xcb libreoffice --calc"

Gwenview's Annotate behaves weirdly even though Spectacle's Annotate behaves normally (i.e. correct scaling is applied), but I wasn't able to get Spectacle to screenshot itself. Attached is a demonstration in LibreOffice.
Comment 1 Nicolas Fella 2024-03-17 13:48:50 UTC
These are separate application bugs. 

The issue with Gwenview is https://github.com/ksnip/kImageAnnotator/issues/326

Please report the Libreoffice problem to Libreoffice