Bug 408950

Summary: ComboBox doesn't close when clicked on the ComboBox itself
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: equeim
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, cfeck, kde, nate
Priority: NOR    
Version: 5.59.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description equeim 2019-06-20 12:40:30 UTC
SUMMARY
ComboBox popup menu closes when clicked outside of it, but not when clicking on ComboBox itself.

STEPS TO REPRODUCE
1. Click on QQC2 ComboBox to open popup menu
2. Click on it again

OBSERVED RESULT
ComboBox doesn't react to click.

EXPECTED RESULT
ComboBox should close its popup menu, as Qt Widgets' QComboBox does.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.16.1
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-06-21 09:27:48 UTC
*** Bug 404060 has been marked as a duplicate of this bug. ***
Comment 2 Kai Uwe Broulik 2019-07-18 15:30:23 UTC
Git commit 6103f24938161350163b841a81f5ebf20a9527df by Kai Uwe Broulik.
Committed on 18/07/2019 at 15:29.
Pushed by broulik into branch 'master'.

[ComboBox] Set close policy to close on click outside instead of only outside parent

Ensures clicking the ComboBox itself closes the popup as it does with widget QComboBox.
While Qt documentation for Popup says that is the default, QQuickComboBox explicitly overwrites it to be CloseOnPressOutsideParent
instead for whatever reason.
For our usecase the CloseOnPressOutside behavior makes more sense.

Differential Revision: https://phabricator.kde.org/D22509

M  +1    -0    org.kde.desktop/ComboBox.qml

https://commits.kde.org/qqc2-desktop-style/6103f24938161350163b841a81f5ebf20a9527df