Bug 428191 - PC3 Tooltips in small/short windows get cut off, mis-rendered, or overlap their parent control because they aren't drawn as a separate window
Summary: PC3 Tooltips in small/short windows get cut off, mis-rendered, or overlap the...
Status: CONFIRMED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: tooltips (show other bugs)
Version: 5.75.0
Platform: Arch Linux Linux
: HI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 427862 440205 443638 444471 450552 483760 (view as bug list)
Depends on:
Blocks: 458871
  Show dependency treegraph
 
Reported: 2020-10-24 18:01 UTC by Bharadwaj Raju
Modified: 2024-04-12 01:29 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of KRunner showing a glitched tooltip (10.45 KB, image/png)
2020-10-24 18:01 UTC, Bharadwaj Raju
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bharadwaj Raju 2020-10-24 18:01:33 UTC
Created attachment 132689 [details]
Screenshot of KRunner showing a glitched tooltip

SUMMARY
Tooltips in KRunner (not anywhere else that I can find) have incorrect background height. Text appears correctly. Screenshot attached.


STEPS TO REPRODUCE
1. Open KRunner
2. Hover over one of the buttons
3. Observe tooltip


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.20.0
(available in About System)
KDE Plasma Version: 5.20.0
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Can be reproduced in both Wayland and X11 sessions.
GPU is Mesa DRI Intel G41.
I've tried tooltips in other programs (based on QML, Qt Widgets, Gtk+) and they do not show this problem.
Comment 1 Alexander Lohnau 2020-10-24 18:58:25 UTC
That is an issue with the port to the PlasmaComponents3 toolkit. I am reassigning it there.
Comment 2 Nate Graham 2020-10-26 15:15:20 UTC
Heh yeah. :(

The problem is that we ported (nearly) everything to use PlasmaComponents3, which uses QtQuickControls2, because QtQuickControls1 is deprecated and is slated to be removed in Qt 6. However the QQC2 Tooltip isn't a separate window, so when it is displayed inside a parent window that is very small, it necessarily needs to be smaller, which caused glitches like this.

Some possible solutions:
- Make PC3/QQC2 tooltips use a separate window
- Port KRunner to use PlasmaCore.ToolTip, which already uses a separate window, but it doesn't respect the color scheme's tooltip colors
Comment 3 Nate Graham 2020-11-24 19:07:30 UTC
*** Bug 427862 has been marked as a duplicate of this bug. ***
Comment 4 Noah Davis 2021-02-19 18:57:08 UTC
Git commit b84fbb01f7ea17f6953da06f8ea800b824fc9a57 by Noah Davis.
Committed on 19/02/2021 at 18:56.
Pushed by ndavis into branch 'master'.

[PC3 ToolTip] Reduce margins to smallSpacing
Related: bug 433243

FIXED-IN: 5.80

M  +1    -1    src/declarativeimports/plasmacomponents3/ToolTip.qml

https://invent.kde.org/frameworks/plasma-framework/commit/b84fbb01f7ea17f6953da06f8ea800b824fc9a57
Comment 5 Nate Graham 2021-08-04 22:32:01 UTC
*** Bug 440205 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2021-10-18 03:15:05 UTC
*** Bug 443638 has been marked as a duplicate of this bug. ***
Comment 7 Patrick Silva 2021-10-27 11:17:20 UTC
*** Bug 444471 has been marked as a duplicate of this bug. ***
Comment 8 Patrick Silva 2022-02-19 12:57:04 UTC

*** This bug has been marked as a duplicate of bug 450552 ***
Comment 9 Patrick Silva 2022-02-19 12:59:19 UTC
*** Bug 450552 has been marked as a duplicate of this bug. ***
Comment 10 Patrick Silva 2024-03-11 12:47:11 UTC
Still an issue on Plasma 6.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 11 Nate Graham 2024-04-12 01:29:09 UTC
*** Bug 483760 has been marked as a duplicate of this bug. ***