QTreeWidget - to see which items are selected
-
Hi,
I would like to know how can I check which items are marked QTreeWidget.
-
Hi,
Do you mean "selectedItems":http://qt-project.org/doc/qt-5/qtreewidget.html#selectedItems ?
-
but the SelectedItems can check only one item?
-
selectedItems returns a list of all selected items. If that's not what you wanted then can you elaborate on what you mean by "items marked" ?
-
Sorry, badly expressed. I wanted to not check my selection of items, and checking whether CheckState field is Qt::Checked or Qt::Unchecked.
-
@refresh
-
Please, don't bump you're thread so fast, allow at least 24 hours for an answer to come.
You'd need to go throughout your tree to check each item.
-
So recursion. Only just do not know how to get around this tree.
-
Go through each children of each top level item
-
propagates you about topLevelItem ?
-
I don't understand that question