| Summary: | Tooltip can overlap pointer when it appears, leading to an appear/disappear loop | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] libplasma | Reporter: | mao492479407 |
| Component: | tooltips | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | 4wy78uwh, equeim, fallbork, kde, kdedev, nate, notmart |
| Priority: | HI | Keywords: | regression |
| Version First Reported In: | 6.4.5 | ||
| Target Milestone: | --- | ||
| Platform: | CachyOS | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=511875 | ||
| Latest Commit: | https://invent.kde.org/frameworks/kirigami/-/commit/2f280def04958e92dd8393a5999f348aa5807280 | Version Fixed/Implemented In: | Frameworks 6.23 |
| Sentry Crash Report: | |||
| Attachments: | show how to reproduce | ||
|
Description
mao492479407
2025-10-21 08:43:40 UTC
I can't reproduce this on my system (git master, AMD GPU, Wayland). Can you attach a screen recording showing it happening? Thanks! Created attachment 185987 [details]
show how to reproduce
Thanks. Does the issue still happen in a new clean user account created on the same computer, with no customizations applied? Sorry, I have not test that,i just found this issue accidentally and i found that the Kcal application just has higher possibility for this issue to happen🙃 I will provide more information if i find ,just need some time...🙃 Never mind, I can reproduce it. I have to position the pointer in a location where the tooltip will overlap when it appears. It's never supposed to overlap, so there's some positioning bug somewhere. *** Bug 510987 has been marked as a duplicate of this bug. *** *** Bug 513088 has been marked as a duplicate of this bug. *** I think I figured out the cause of this and https://bugs.kde.org/show_bug.cgi?id=511875 (and possibly other tooltip positioning issues in QML apps). Here in Kirigami's SelectableLabel tooltip's x and y properties are overwritten: https://invent.kde.org/frameworks/kirigami/-/blob/e2ef3baddb292cb8b796854e879f1b028cfa1ea8/src/controls/SelectableLabel.qml#L325 This is **bad** because ToolTip accessed via attached property is global. This makes original x and y bindings in qqc2-desktop-style's ToolTip to break everywhere where attached ToolTip is used. Not sure what the correct fix should be (Binding?). Or maybe just instantiating separate ToolTip as suggested in Qt docs: https://doc.qt.io/qt-6/qml-qtquick-controls-tooltip.html#custom-tool-tips A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/2024 Git commit 2f280def04958e92dd8393a5999f348aa5807280 by Nate Graham, on behalf of Alexey Rochev. Committed on 12/01/2026 at 15:37. Pushed by ngraham into branch 'master'. SelectableLabel: don't break coordinates of global ToolTip instance Use Binding to restore original x and y bindings of the global ToolTip object. Related: bug 511875 M +35 -12 src/controls/SelectableLabel.qml https://invent.kde.org/frameworks/kirigami/-/commit/2f280def04958e92dd8393a5999f348aa5807280 |