Bug 498582 - GroupBox caption is truncated
Summary: GroupBox caption is truncated
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: 6.2.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-12 23:17 UTC by finalcountdown72
Modified: 2025-01-13 19:46 UTC (History)
3 users (show)

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


Attachments
Example project and screenshot (13.08 KB, application/gzip)
2025-01-12 23:17 UTC, finalcountdown72
Details

Note You need to log in before you can comment on or make changes to this bug.
Description finalcountdown72 2025-01-12 23:17:51 UTC
Created attachment 177309 [details]
Example project and screenshot

SUMMARY
When using a point size of less than 10, GroupBox captions are truncated. 

STEPS TO REPRODUCE
Create a QGroupBox widget with caption "GroupBox1" and a Noto Sans font with a point size of 8.

I've attached an example project exhibiting the problem.

OBSERVED RESULT
The centered GroupBox caption text is truncated at the left and right. The lower the size, the more pronounced the truncation. It seems the actual font size does not go down, only the width determined via QFontMetrics.size goes down, causing the truncation.

The attachment contains a screenshot.

EXPECTED RESULT
The caption is legible in its entirety. With the 'Fusion' and 'Windows' qt styles, it's working as expected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS, kernel 6.12.8, Wayland
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
The logicalDotsPerInch values of my screen are all 96, screen scale factor in KDE settings is 100%.