Bug 427539

Summary: Cannot dismiss context menu of sidebar view search field when clicking in main view
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REOPENED ---    
Severity: minor CC: kde, nate
Priority: LO    
Version First Reported In: 5.27.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://bugreports.qt.io/browse/QTBUG-128935
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2020-10-11 11:34:54 UTC
SUMMARY
Reproducible on both X11 and Wayland sessions.

STEPS TO REPRODUCE
1. open system settings
2. right-click on the search field 
3. try to dismiss the context menu by clicking outside it: the context menu remains open
4. minimize and restore system settings: the context menu is still open

EXPECTED RESULT
context menu should be closed when we click outside it

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.0
Comment 1 Nate Graham 2020-10-12 17:36:03 UTC
Ugh, yet more focus issues in System Settings due to its hybrid QWidgets/QML nature. It will dismiss if you click on any part of the sidebar (which is all QML) but not the main view (which is QML inside of QWidgets).
Comment 2 Nate Graham 2020-10-12 17:36:59 UTC
*** Bug 427538 has been marked as a duplicate of this bug. ***
Comment 3 David Edmundson 2024-09-16 16:03:53 UTC
Identified and moved to upstream: https://bugreports.qt.io/browse/QTBUG-128935

I don't think it's worth working around locally given it's existed here for a while. It should be relatively easy to fix upstream if no-one else does it.
Comment 4 David Edmundson 2024-10-18 11:25:32 UTC
Made a fix for the above bug report: https://codereview.qt-project.org/c/qt/qtdeclarative/+/598375

But there's another twist, that doesn't fix the issue of clicking in another window.  

That needs another investigation and a new fix somewhere.