Checkbox should provide an exclusiveGroup property similar to upstream Qt CheckBox

Bug #1360840 reported by Nekhelesh Ramananthan
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Confirmed
Wishlist
Unassigned
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Upstream QtQuick Controls provide a CheckBox [1] which has a property called "exclusiveGroup" which comes in handy when trying to ensure that only one checkbox is checked within a group.

For example, say in the UI we present a group choice like shown below where a user is expected to only choose one option. Using upstream QT Checkbox, this is quite simple to implement, while using the Ubuntu SDK Checkbox is a hassle.

Choose an Alarm Sound
 [ ] Suru Arpeggio
 [x] Ubuntu
 [ ] Metal Piano

[1] http://qt-project.org/doc/qt-5/qml-qtquick-controls-checkbox.html

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

This is required for the clock app where the user should be allowed only choose one alarm sound. We have currently implemented this using a for loop which goes through the list to ensure that only one list item is checked at all times. A exclusiveGroup property would be a perfect usecase here.

description: updated
summary: Checkbox should provide an exclusiveGroup property similar to upstream
- Qt Switch
+ Qt CheckBox
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
importance: Undecided → Wishlist
Revision history for this message
Zsombor Egri (zsombi) wrote :

This is also a valid component on desktop. It also requires a RadioGroup - or similar with or w/o visuals - which drives the exclusion.

Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Allowing ExclusiveGroup for checkboxes is a design mistake in Qt.

Checkboxes should never be simply mutually exclusive, because people understand them as being independent. <http://www.nngroup.com/articles/checkboxes-vs-radio-buttons/>

Checkboxes should seldom ever be related to each other at all. For example, in a set of formatting checkboxes, [_] Bold [_] Italic [_] Underline [_] Double underline, the last two might be mutually exclusive, but otherwise they're all independent.

The real problem here is that the Ubuntu toolkit is missing radio buttons (bug 1211866), so developers are forced to confuse users by using checkboxes instead.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.