Created attachment 134743 [details] The tooltip text is clipped near the end SUMMARY Filelight's (Version 20.12.1) tooltips are sometimes incorrectly clipped, some locations do not suffer from this issue when mouse is placed over them, but the most affected files are located in the following directories: /usr, /opt, /lib STEPS TO REPRODUCE 1. Open Filelight 2. Navigate to /usr, /opt, /lib 3. Mouse over some locations OBSERVED RESULT Tooltips are clipped incorrectly EXPECTED RESULT Tooltip size should fit text SOFTWARE/OS VERSIONS Windows: N/A macOS: N/A Linux/KDE Plasma: 5.10.6-arch1-1 (available in About System) KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Long path names and short path names also have this issue
Created attachment 134871 [details] Screenshot I'm unable to replicate this issue. See screenshot, my tooltip extends beyond the window to show the full path.
I can reproduce the issue.
Created attachment 136769 [details] image 1
Created attachment 136770 [details] image 2
Thanks for confirming.
Created attachment 143804 [details] use-sizehint.patch
Can confirm. use-sizehint.patch solves the issue for me.
Git commit 248030dbdfcfae9ff493a443808af334a88174cd by Harald Sitter. Committed on 26/04/2022 at 19:45. Pushed by sitter into branch 'master'. correctly calculate fontmetrics - use the fontmetrics of the target label not the application (makes no difference but is practically more correct) - use horizontalAdvance instead of boundingrect width. the latter is relative to the rect coordinates and as such not nearly as straight forward to use. horizontaladvance is the actual width the text will occupy, it's what we intend to know here M +2 -2 src/radialMap/item.cpp https://invent.kde.org/utilities/filelight/commit/248030dbdfcfae9ff493a443808af334a88174cd
*** Bug 456176 has been marked as a duplicate of this bug. ***