Bug 458016

Summary: Long filenames overflow into the next column in details mode (only on wayland)
Product: [Applications] dolphin Reporter: NewmanIsaac <newmanisaac49>
Component: view-engine: details modeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 22.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Long filename spilling into the next column

Description NewmanIsaac 2022-08-18 00:35:30 UTC
Created attachment 151394 [details]
Long filename spilling into the next column

SUMMARY
Long filenames that don't fit the "Name" column overflow into the next column, sometimes resulting in overlapping texts. This only happens on Wayland; under X or XWayland the filename is properly truncated.

STEPS TO REPRODUCE
1. Set dolphin to details view mode under Wayland
2. Open a folder containing a file with a long name
3. Resize the "Name" column until the filename doesn't fit the column width

OBSERVED RESULT
Filenames that are too long are partially drawn on top of the next column.

EXPECTED RESULT
Filenames are truncated to correctly fit the available column space.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux kernel 5.19.1
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Comment 1 NewmanIsaac 2022-08-21 00:03:49 UTC
I found that this problem only happens if I start dolphin with QT_QPA_PLATFORMTHEME=qt5ct. Long filenames are properly truncated on Plasma Wayland or when using QT_QPA_PLATFORMTHEME=kde, so I don't know if this should really be considered a bug.