How to iterate "parent" objects?
Unsolved
C++ Gurus
-
This post is deleted!
-
I am not entirely sure, what you mean by "iterating through the parents". A widget only has one parent. A tree node has no parent, if it's the root node and it has no children, if it's a leaf.
So which parents do you want to iterate through. If you mean the siblings of a node's parent, just find all children of the grandparent. -
This post is deleted!
-
To access the grandparent use parent()->parent()
-