Bug 403403

Summary: Comboboxes whose pop-ups contained images/pixmaps, rendered text previews can be only closed by clicking on the button itself
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: Matej Mrenica <matejm98mthw>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, kde, nate, notuxius, unassigned-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.55

Description Matej Mrenica 2019-01-19 17:03:52 UTC
... but not by clicking anywhere else. The same applies for 'Hinting' preview.

KDE Frameworks Version: 5.54
Qt Version: 5.12
Comment 1 Nate Graham 2019-01-20 02:23:16 UTC
Whoa, that's weeeeird!
Comment 2 Nate Graham 2019-01-23 14:45:51 UTC
The cursors KCM's combobox has the same issue. These are both QML KCMs; moving to qqc2-desktop-style
Comment 3 Patrick Silva 2019-01-23 14:51:55 UTC
*** Bug 401282 has been marked as a duplicate of this bug. ***
Comment 4 David Edmundson 2019-01-23 17:02:18 UTC
I don't think it has anything to do with the contents of the comobox.

Because QQC2 popups are inline. There's a QQuickOverlay across the rest of the window that detects mouse clicks. That doesn't seem to work on the KCM case because someone else is stealing the clicks.
Comment 5 David Edmundson 2019-01-29 16:42:30 UTC
Git commit 0ac99af6e6917051083cbf21c855a90ec4bd043d by David Edmundson.
Committed on 29/01/2019 at 14:53.
Pushed by davidedmundson into branch 'master'.

Set combobox popups to be modal

Summary:
This closer matches what we see on QWidgets where losing focus closes
the combobox.

Test Plan:
Opened a combobox
Clicked outside
It closed

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

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

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

https://commits.kde.org/qqc2-desktop-style/0ac99af6e6917051083cbf21c855a90ec4bd043d
Comment 6 Patrick Silva 2019-02-06 19:32:50 UTC
it's not completely fixed, dropdowns remain open depending on the area clicked.

open system settings > cursor
open "Size" dropdown
while the dropdown is still open, click aside "Apply" button on botton
"Size" dropdown remains open
Comment 7 Patrick Silva 2019-02-06 19:33:16 UTC
Operating System: KDE neon Developer Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0
Comment 8 Nate Graham 2019-02-07 14:56:47 UTC
Interestingly, the click event does seem to trickle down; after the pop-up is closed, the button has been clicked. Can you open a new bug report for this? Thanks!
Comment 9 Patrick Silva 2019-02-07 15:07:03 UTC
reported as bug 404060