Вопрос

I want to get all not selected items from QTreeWidget.

I have worked on getting selected items, but i want to use not selected items as well.

Any help is appreciated!

Это было полезно?

Решение

Use QTreeWidgetItemIterator for iterate over the items. Details and example of using: http://qt-project.org/doc/qt-4.8/qtreewidgetitemiterator.html

Inside the loop, you can choose your actions, depending on the property isSelected

(*it)->isSelected()
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top