How to iterate "parent" objects?
-
wrote on 2 May 2024, 18:22 last edited by Anonymous_Banned275 5 Feb 2024, 18:24This 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. -
wrote on 8 May 2024, 22:57 last edited byThis post is deleted!
-
To access the grandparent use parent()->parent()
-
1/4