I can enumerate widgets inside layout but I need to enumerate widgets inside layouts inside layout...
I'm trying:
while (QHBoxLayout* currentLayout = m_Layout->findChild<QHBoxLayout*>()) {
while (QCheckBox* currentCheckbox = currentLayout->findChild<QCheckBox*>()) {
if (currentCheckbox->isChecked()) {
}
}
}
But this code just stucks... I guess it's maybe because I can't find QHBoxLayout, is there other possible ways I can enumerate layout inside layouts?
Thank you