Bug 527730 - Attached tooltips no longer get Plasma styling with Qt 6.12
Summary: Attached tooltips no longer get Plasma styling with Qt 6.12
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: tooltips (other bugs)
Version First Reported In: 6.8.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2026-10-24 12:12 UTC by Filip Fila
Modified: 2026-10-29 06:23 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.3
Sentry Crash Report:


Attachments
QQC2 styled tooltips instead of Oxygen Plasma styled (186.86 KB, image/jpeg)
2026-10-24 12:12 UTC, Filip Fila
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Fila 2026-10-24 12:12:21 UTC
Created attachment 197595 [details]
QQC2 styled tooltips instead of Oxygen Plasma styled

I'm forwarding a report from an OpenSUSE Oxygen user who noticed that some tooltips on the desktop are no longer styled by the Oxygen Plasma theme.

It seems the tooltips affected are the attached ones. We had issues with them before in the sense that they don't follow Plasma styling without a workaround: https://invent.kde.org/plasma/libplasma/-/merge_requests/1435

But apparently this workaround stopped working with 6.12, since I have 6.11.2 here and they work for me, and since the OpenSUSE user noticed that the change coincided with the Qt update.

STEPS TO REPRODUCE
1.  Update to Qt 6.12
2.  Use a Plasma theme that differs from the QQC2 style, like Oxygen
2.  Hover over a grid item in Kickoff

OBSERVED RESULT
Tooltip styled by the QQC2 style.

EXPECTED RESULT
Tooltip styled by the Plasma theme.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a terminal window):
KDE Plasma Version:  6.8.1
KDE Frameworks Version: 6.32
Qt Version: 6.12
Comment 1 Filip Fila 2026-10-25 13:56:08 UTC
The property we were using for our workaround got renamed in Qt 6.12 with this commit:

https://github.com/qt/qtdeclarative/commit/f55a093c97b4e07e4578ddd2494d28ed9a118778#diff-3999f4804730c576ff7dddb42b234ca2d8a68314b899eea1357e6274fcce2a79L362

-    static const char *name = "_q_QQuickToolTip";
+    // QQuickAttachedPropertyPropagator uses "_q_QQuickToolTip", so we add "shared_"
+    // to make this unique.
+    static const char *name = "_q_shared_QQuickToolTip";
Comment 2 Bug Janitor Service 2026-10-27 09:05:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libplasma/-/merge_requests/1614
Comment 3 Filip Fila 2026-10-29 06:22:52 UTC
Git commit 7c23f113ab52b252d18114d517c9a6fbdfcb56fe by Filip Fila.
Committed on 29/10/2026 at 06:22.
Pushed by filipf into branch 'master'.

Fix desktop attached tooltips not inheriting Plasma styling with Qt 6.12

We have a workaround for Qt defaulting to QQC2 styling for attached tooltips on our desktop.

The problem is, they changed the property name were relying on in Qt 6.12 (more info in bug report), so our workaround doesn't work anymore.

And we now have distros like OpenSUSE or CachyOS which have already jumped the Qt ship, meaning our fix no longer works in Plasma 6.8 there.

This patch adds a new property name to the workaround, but keeps the old code path too because we still depend on 6.11 as a minimum.

FIXED-IN: 6.8.3

M  +10   -4    src/plasma/plasma.cpp

https://invent.kde.org/plasma/libplasma/-/commit/7c23f113ab52b252d18114d517c9a6fbdfcb56fe
Comment 4 Filip Fila 2026-10-29 06:23:36 UTC
Git commit 7f689f1a10a8c33ec526e82fc6a596e1c116bdf0 by Filip Fila.
Committed on 29/10/2026 at 06:23.
Pushed by filipf into branch 'Plasma/6.8'.

Fix desktop attached tooltips not inheriting Plasma styling with Qt 6.12

We have a workaround for Qt defaulting to QQC2 styling for attached tooltips on our desktop.

The problem is, they changed the property name were relying on in Qt 6.12 (more info in bug report), so our workaround doesn't work anymore.

And we now have distros like OpenSUSE or CachyOS which have already jumped the Qt ship, meaning our fix no longer works in Plasma 6.8 there.

This patch adds a new property name to the workaround, but keeps the old code path too because we still depend on 6.11 as a minimum.

FIXED-IN: 6.8.3


(cherry picked from commit 7c23f113ab52b252d18114d517c9a6fbdfcb56fe)

c742a5f6 Fix tooltips not inheriting Plasma stD
a20d34aa Check Qt version at runtime

Co-authored-by: Filip Fila <filipfila.kde@gmail.com>

M  +10   -4    src/plasma/plasma.cpp

https://invent.kde.org/plasma/libplasma/-/commit/7f689f1a10a8c33ec526e82fc6a596e1c116bdf0