PDA

View Full Version : QListWidget Mouse Drag Select Multiple items



Henry Blue Heeler
7th November 2014, 01:15
I want to be able to select multiple items in a QListWidget by dragging the mouse down or up.
The docs say QAbstractItemView::ExtendedSelection "Multiple items can be selected by dragging the mouse over them."
No luck with that. Any suggestions?

StrikeByte
10th November 2014, 15:27
I know it does work on a QTableView, but only when drag&drop is disabled

Henry Blue Heeler
10th November 2014, 22:01
Yes, you can select multiple items with
setDragDropMode(QAbstractItemView::NoDragDrop) // or
setDragDropMode(QAbstractItemView::DropOnly)
But then you lose drag capability. Thanks for the reply.