qlistwidget count of selected items
I know you can use count() on a QListWidget to get the count of the items in the widget.
Is there a better way to get the count of only the selected items in the widget, rather than using QListWidget::selectedItems () and then getting the count of that list?
Re: qlistwidget count of selected items
What's wrong with using selectedItems() and count()?
Re: qlistwidget count of selected items
From what I gathered, selectedItems() makes a copy of the selected items does it not? and then you get a count of that. I was just seeing if there was a more efficient way to do it, that wouldn't need to make a copy.
Re: qlistwidget count of selected items
No, it creates a list of pointers. It doesn't copy any objects.
Re: qlistwidget count of selected items
How to Copy all selected item in clipboard ?