Bug 486041

Summary: ToolButtons don't render a decoration when they have Tab focus
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: Aleix Pol <aleixpol>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: ahiemstra, kde, nate, noahadvs, notmart
Priority: NOR    
Version: 6.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: Frameworks 6.4
Sentry Crash Report:

Description Aleix Pol 2024-04-23 22:10:39 UTC
If you open any Kirigami app (Kirigami Gallery, Discover) and tab your way through the UI, at least the toolbuttons on the tool bar won't show a decoration.

It works on widgets applications with breeze.
It works if I set QT_QUICK_CONTROLS_STYLE=org.kde.breeze.
It doesn't work if I change the QStyle to a different one.
Comment 1 Bug Janitor Service 2024-05-26 00:59:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/412
Comment 2 Aleix Pol 2024-05-27 15:29:14 UTC
Git commit c6006ca5d16e6374a3c5a03da380f03e590442c4 by Aleix Pol.
Committed on 26/05/2024 at 00:58.
Pushed by apol into branch 'master'.

Fix rendering the focus of our items

Due to a Qt bug, we cannot rely on QQuickControl::focusReasonChanged to
notify us when our focus reason changes.
https://bugreports.qt.io/browse/QTBUG-125725

Instead, check which is the focus reason changes. I suggest we ifdef it
out once we find a good fix.

M  +2    -0    plugin/kquickstyleitem.cpp

https://invent.kde.org/frameworks/qqc2-desktop-style/-/commit/c6006ca5d16e6374a3c5a03da380f03e590442c4