I am trying to build a GUI with a dropdown for multi-select in python, PyQT5 but, the display is only showing single item instead of a dropdown. Is there a way to include the options as a drop down ?
Asked
Active
Viewed 1,113 times
2 Answers
0
QlistWidget has the setSelectionMode: QListWidget and Multiple Selection But the combobox does not seem to have it. And I don't remember seeing a combobox with multi selection on.

Demi-Lune
- 1,868
- 2
- 15
- 26
-
I've implemented the same it works well, but instead of a dropdown, it shows once item at a time, appreciate any help. – user9529330 Feb 08 '19 at 18:33
-
1I mean : I don't remember ever seeing a combobox with multi selection enabled, not in qt or any other widget library (in wx it is documented to be resticted to single selection https://wxpython.org/Phoenix/docs/html/wx.ComboBox.html ) – Demi-Lune Feb 09 '19 at 17:46
-
So you probably have to do with listbox, and add a handle or button to shrink its size to 1 line when you don't use it. Would that fit your needs? – Demi-Lune Feb 09 '19 at 17:47
-
I was able to implement multi selection check box with QComboBox, any idea on how to get checked items from the QComboBox? – user9529330 Feb 14 '19 at 20:49
0
No, you can't select multiple item from a QComboBox instance. It can be used to select only one item at once. If you want to have multiple selection in your widget have to use a QListView/Widget.

birorichard
- 41
- 5