in C++ by (9.4k points) edited by
0 like 0 dislike
12 views

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 (9.4k points) edited by

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

QListWidget *listWidget = new QListWidget();
listWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);

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.