From QT3 to QT4, QObjectList should have changed.
How can I convert the following QT3 code to QT4?

Qt Code:
  1. QObjectList *l = this->queryList( "TableButton" ); // get all its children which is TableButton
  2. QObjectListIt it( *l ); // iterate over the buttons
  3.  
  4. while ( it.current() != 0 )
  5. {
  6. // for each found button...
  7. ((TableButton *)(it.current()))->close( TRUE );
  8. ++it;
  9. }
  10. delete l;
To copy to clipboard, switch view to plain text mode 

Thanks!