I use QListWidget and I set ContiguousSelection,
I want to get index of first selected item in selection area. There is some easy way to do it?
p.s. QListWidget::currentRow, QListWidget::selectedItems, QListWidget::selectedItems are not suitable
I use QListWidget and I set ContiguousSelection,
I want to get index of first selected item in selection area. There is some easy way to do it?
p.s. QListWidget::currentRow, QListWidget::selectedItems, QListWidget::selectedItems are not suitable
Why isn't selectedItems not suitable?
You can get selectedItems().at(0) .. can't you ?
also if your definition of having first selected item is different, define what you want.
Bookmarks