codeKiller
codeKiller

Reputation: 5748

selecting items in a comboBox

How can I make my comboBox to allow me to select more than 1 item??

Or how can I simulate this behaviour with a comboBox from QtDesigner??

I would like the user to be able to click two or more items and I would be able to get the selected items.

Upvotes: 0

Views: 353

Answers (2)

Aleksandar
Aleksandar

Reputation: 3661

if you really want to use comboBox to select more then one items here is how I've did it link1. Also here is solution how to get what is selected link2

Upvotes: 0

James Bingo
James Bingo

Reputation: 286

It sounds like you want a list box, use the PyQt QListWidget:

http://pyqt.sourceforge.net/Docs/PyQt5/api/qlistwidget.html

Upvotes: 1

Related Questions