Bug 469067 - When moving your mouse between items that display a tooltip, the tooltip box becomes deformed
Summary: When moving your mouse between items that display a tooltip, the tooltip box ...
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-27 16:58 UTC by AF
Modified: 2023-04-28 19:33 UTC (History)
2 users (show)

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


Attachments
a brief recording of the issue in Kate (649.54 KB, video/x-matroska)
2023-04-27 16:58 UTC, AF
Details
A brief recording of the issue occurring in Strawberry music player (565.18 KB, video/x-matroska)
2023-04-27 16:59 UTC, AF
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AF 2023-04-27 16:58:36 UTC
Created attachment 158489 [details]
a brief recording of the issue in Kate

SUMMARY

This bug is visible in multiple applications. I originally found it in the Strawberry music player (not a KDE app but does use Qt) and then later found a way to produce it with Kate. The problem is probably visible with other applications too. When you have a list of items in the GUI of a Qt application that when hovered over with the mouse result in a tooltip appearing, if you move your mouse between those items the tooltip box attempts to resize. This resize does not complete correctly though and the resulting tooltip box isn't the correct size for the text it now contains since you moved your mouse. 

I have noticed that the effect is more severe when the space between items is smaller. In the steps I provided below for reproducing the bug in Kate, the buttons are fairly large and the mouse moving a larger distance seems to make it less consistent. In the Strawberry music player though you can reproduce this issue by mousing over songs in the collection screen and the gap between them is very small, and produces even more severely buggy tooltip boxes where you can see the animation of the tooltip box resizing keep repeating in a portion of the deformed tooltip box.

There is a possibility this might be a Qt bug, but I am not sure.

Link to the Strawberry music player bug:
https://github.com/strawberrymusicplayer/strawberry/issues/1190


STEPS TO REPRODUCE

I am providing steps to reproduce this issue with Kate because it has a particular arrangement in it's GUI that makes this easy to reproduce, but it can be reproduced in other applications as well.

1. Open Kate.
2. On the sidebar on the left side of the screen, hover your mouse over one of the buttons so that a tooltip is displayed.
3. Move your mouse up or down to another button and hover your mouse over it.

OBSERVED RESULT
You should see the tooltip box attempt to resize, but it does not resize correctly. Note that if you can find another application with a list of items that when hovered over produce a tooltip with a very small distance between each item, the resize effect is even more severe.

EXPECTED RESULT
The tooltip box should resize correctly.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 AF 2023-04-27 16:59:19 UTC
Created attachment 158490 [details]
A brief recording of the issue occurring in Strawberry music player
Comment 2 AF 2023-04-27 17:00:50 UTC
Forgot to include Software/OS info, sorry:

Operating System: Arch Linux
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.1.25-1-lts (64-bit)
Graphics Platform: X11
Processors: 6 × Intel® Core™ i7-8700 CPU @ 3.20GHz
Memory: 31.2 GiB of RAM
Graphics Processor: AMD FirePro W5100
Comment 3 Nate Graham 2023-04-28 18:37:31 UTC
Both Kate and Strawberry use Qt, but it looks like both are using different widget styles--Breeze for Kate, and Fusion (I think) for Strawberry. This means we can rule out the widget style too, which pretty much leaves Qt. So at this point it's looking like a Qt bug, and I'd recommend you submit a bug report at https://bugreports.qt.io. Thanks!
Comment 4 AF 2023-04-28 19:33:51 UTC
The Qt bug: https://bugreports.qt.io/browse/QTBUG-113287