I have a QTreeWidget
. Have to iterate through the nodes which are expanded. Tried with iterating with QTreeWidgetItemIterator it(<rootNode>, QTreeWidgetItemIterator::NotHidden)
. But it is giving all the nodes of the tree instead of just expanded ones.
Am I missing to set any flag in the iterator?