Skip to main content
BParh.1
Senior III
June 16, 2021
Solved

How to iterate all widgets inside container?

  • June 16, 2021
  • 2 replies
  • 791 views

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

This topic has been closed for replies.
Best answer by BParh.1

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
June 17, 2021

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
June 21, 2021

Hello BParh.1,,

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

/Alexandre