This should work:
foreach
( CustomLineEdit
*obj, MyTabPage
->findChildren< CustomLineEdit
* >
( QRegExp( "leHS.*" ) ) ) { qDebug() << " Connecting" << obj->objectName();
connect( obj, SIGNAL(NumberChanged(double)), SLOT(CalcProceeds()) );
}
foreach( CustomLineEdit *obj, MyTabPage->findChildren< CustomLineEdit * >( QRegExp( "leHS.*" ) ) ) {
qDebug() << " Connecting" << obj->objectName();
connect( obj, SIGNAL(NumberChanged(double)), SLOT(CalcProceeds()) );
}
To copy to clipboard, switch view to plain text mode
Replace CustomLineEdit with your custom line edit's class name.
Bookmarks