in C++ by (10.3k points) edited by
0 like 0 dislike

Me need multiple selection in QListWidget. How I can turn on available multiple selection for QListWidget in Qt framework for C++ programming language?

qlistwidget multiple selection
multiple selection for qlistwidget
qt qlistwidget multiple selection

1 Answer

0 like 0 dislike
by (10.3k points) edited by

You need set selection mode as QAbstractItemView::ExtendedSelection for this QListWidget:

QListWidget *listWidget = new QListWidget();

After this for QListWidget will available multiple selection.

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.