auto ui_control = std::vector<CControl*>();
view_->getFrame()->getView(0)->asViewContainer()->getChildViewsOfType<CControl>(ui_control, true);
for(auto ui_element : ui_control)
{
// do something on ui_element here
}
I expected this to recursively search through all child elements.
Instead, it searches only until the grand children of the top view. Further elements down the tree are not found.
This behaviour can be changed in cviewcontainer.h as follows:
Beeing able to collect all children of a specific view would be great, e.g. if you want to deactivate all controls of a certain subview, i.e. it could be further split into subviews.
I'm unsure what is the expected behaviour of
I expected this to recursively search through all child elements. Instead, it searches only until the grand children of the top view. Further elements down the tree are not found.
This behaviour can be changed in
cviewcontainer.h
as follows:Beeing able to collect all children of a specific view would be great, e.g. if you want to deactivate all controls of a certain subview, i.e. it could be further split into subviews.