How to get ItemWidget in QGroupBox?
Solved
General and Desktop
-
I'm have QGroupBox which has QLineEdit, I use "for" loop to get item
for ( auto it : ui->groupBox->children() ) { if ( it->metaObject()->className() == QString("QLineEdit" )) { // it not have option "isEmpty()" because it QObject } }
Do get QLineEdit in QGroupBox?
-
It should but better use QObject::findChild<>().