Bug 450297 - Focussed QCommandLinkButton lacks focus indicator when window is opened or regains focus
Summary: Focussed QCommandLinkButton lacks focus indicator when window is opened or re...
Status: ASSIGNED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: 5.24.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-15 11:33 UTC by Ingo Klöcker
Modified: 2022-02-15 11:57 UTC (History)
1 user (show)

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


Attachments
Kleopatra's New Key Pair wizard immediately after opening (69.82 KB, image/png)
2022-02-15 11:33 UTC, Ingo Klöcker
Details
After pressing Down to move focus to second button (69.96 KB, image/png)
2022-02-15 11:34 UTC, Ingo Klöcker
Details
Kleopatra's New Key Pair wizard after opening with radio buttons (42.46 KB, image/png)
2022-02-15 11:35 UTC, Ingo Klöcker
Details
After pressing Down to move focus to second radio button (42.78 KB, image/png)
2022-02-15 11:36 UTC, Ingo Klöcker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Klöcker 2022-02-15 11:33:34 UTC
Created attachment 146758 [details]
Kleopatra's New Key Pair wizard immediately after opening

SUMMARY
***
Focussed QCommandLinkButton lacks focus indicator when window is opened or regains focus. This can be reproduced with Kleopatra. This problems affects all widgets that use a focus frame.
***


STEPS TO REPRODUCE
1. Start Kleopatra.
2. Select File->New Key Pair...

OBSERVED RESULT
A dialog opens with two large buttons (QCommandLinkButton). The first button does have input focus, but there is no visual focus indicator. If you press Tab or Down, then you will observe that the second button is now marked as having focus.

EXPECTED RESULT
The first button should indicate that it has focus when the dialog is opened.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20220210
(available in About System)
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I'll add some screenshots. I also add screenshots showing a similar issue for radio buttons (I patched Kleopatra to use radio buttons instead of QCommandLinkButtons in order to check whether the problem is specific for QCommandLinkButton or not).
Comment 1 Ingo Klöcker 2022-02-15 11:34:31 UTC
Created attachment 146759 [details]
After pressing Down to move focus to second button
Comment 2 Ingo Klöcker 2022-02-15 11:35:17 UTC
Created attachment 146760 [details]
Kleopatra's New Key Pair wizard after opening with radio buttons
Comment 3 Ingo Klöcker 2022-02-15 11:36:02 UTC
Created attachment 146761 [details]
After pressing Down to move focus to second radio button
Comment 4 Bug Janitor Service 2022-02-15 11:57:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze/-/merge_requests/181