Skip to main content
BParh.1
Senior III
Jun 16, 2021 11:16 AM UTC
Solved

How to iterate all widgets inside container?

Given a container which contains , how to iterate through all the widgets which have been added inside ?

This topic has been closed for replies.
BParh.1
BParh.1Best answer
Senior III
Jun 17, 2021 1:40 AM UTC

Ok I think I manage to do this this way:

 
auto child = this->getFirstChild();
while (child) {
 // do action
 child = child->getNextSibling();
}

2 replies

BParh.1
BParh.1AuthorBest answer
Senior III
Jun 17, 2021 1:40 AM UTC

Ok I think I manage to do this this way:

 
auto child = this->getFirstChild();
while (child) {
 // do action
 child = child->getNextSibling();
}

Alexandre RENOUX
Visitor II
Jun 21, 2021 7:12 AM UTC

Hello BParh.1,,

When your question is answered or you found the solution yourself, please close this topic by choosing Select as Best.

/Alexandre