cancel
Showing results for 
Search instead for 
Did you mean: 

How to iterate all widgets inside container?

BParh.1
Senior III

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

1 ACCEPTED SOLUTION

Accepted Solutions
BParh.1
Senior III

Ok I think I manage to do this this way:

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

View solution in original post

2 REPLIES 2
BParh.1
Senior III

Ok I think I manage to do this this way:

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

Alexandre RENOUX
Principal

Hello BParh.1,,

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

/Alexandre