문제

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