Bug 408950 - ComboBox doesn't close when clicked on the ComboBox itself
Summary: ComboBox doesn't close when clicked on the ComboBox itself
Status: RESOLVED FIXED
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.59.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-20 12:40 UTC by equeim
Modified: 2019-07-18 15:30 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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