Bug 454081 - Menus with multiple checkboxes close on first click
Summary: Menus with multiple checkboxes close on first click
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-20 10:42 UTC by Alan Prescott
Modified: 2022-05-23 17:40 UTC (History)
2 users (show)

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


Attachments
Show in Activities checkbox menu (26.34 KB, image/png)
2022-05-20 10:42 UTC, Alan Prescott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Prescott 2022-05-20 10:42:46 UTC
Created attachment 149019 [details]
Show in Activities checkbox menu

When a menu consists of a set of checkboxes, clicking to set/clear one checkbox closes the menu. This is very annoying when the user wants to set multiple items as the whole menu sequence has to be started again.
I know of at least two places where these menu types are found.
 'Show in Activities' from the window TitleBar and selecting columns to be displayed in Dolphin.

STEPS TO REPRODUCE
1. Right click on window TitleBar
2. Select 'Show in Activities' when you have multiple activities
3. Try and select more than one activity (but not All Activities)

OBSERVED RESULT
When any checkbox item is clicked, it is set and the menu closes

EXPECTED RESULT
The menu to stay open so that multiple checkboxes can be selected and close on a mouse click outside the menu

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Operating System: openSUSE Tumbleweed 20220517
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Kernel Version: 5.17.7-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION
Comment 1 Felipe Kinoshita 2022-05-21 02:42:20 UTC
That usually how menus work in computer software, what's the expected behaviour in your opinion?
Comment 2 Alan Prescott 2022-05-21 03:55:17 UTC
(In reply to Felipe Kinoshita from comment #1)
> That usually how menus work in computer software, what's the expected
> behaviour in your opinion?

It may be how menus work, but not multiple checkboxes. 
This is where having multiple checkboxes in a menu breaks the original menu concept. Menus allow only single click but multiple checkboxes have to allow for multiple clicks.

My server is running an older version of KDE/Plasma under openSUSE Leap and allows me to select more than one checkbox at a time without closing the menu, the menu only closes when I click outside the menu so, at one point, this worked as I would like.
  Operating System: openSUSE Leap 15.3
  KDE Plasma Version: 5.18.6
  KDE Frameworks Version: 5.76.0
  Qt Version: 5.12.7
Comment 3 Nate Graham 2022-05-23 17:25:06 UTC
This happened because we ported an old custom menu implementation to the standard one. The custom one had the behavior you wanted, but suffered from other bugs. Porting to the standard menu fixed all those bugs, but introduced this one.

Unfortunately short of reverting that work (which we don't want t, we cannot add the behavior you want in the menu. It needs to be done in Qt itself. See https://bugreports.qt.io/browse/QTBUG-47406
Comment 4 Nate Graham 2022-05-23 17:25:58 UTC
Oops, clicked save too soon. That last paragraph should be:

Unfortunately short of reverting that work (which we don't want to do because it would re-introduce other bugs), we cannot add the behavior you want in the menu. It needs to be done in Qt itself. See https://bugreports.qt.io/browse/QTBUG-47406
Comment 5 Alan Prescott 2022-05-23 17:40:08 UTC
Understood :-)
It does seem that putting checkboxes in menus is really overloading the original WIMP concept ;-)