Hi,

I have the following code in qt3 that I've been trying unsuccessfully to port to qt4 using qlist and findchildren. How would the following translate to qt4?

Qt Code:
  1. QObject *obj2;
  2. QObjectList *l2 = MyTabPage->queryList("QPushButton","leHS*",true,false);
  3. QObjectListIt it4( *l2 ); // iterate over the buttons
  4.  
  5. while ( (obj2 = it4.current()) != 0 ) {
  6. qDebug(" Connecting \"%s\"",obj2->name());
  7. connect( ((QLineEdit *)obj2), SIGNAL(NumberChanged(double)),SLOT(CalcProceeds()) );
  8. // for each found object...
  9. ++it4;
  10. }
To copy to clipboard, switch view to plain text mode 

Thanks!

Gene