From QT3 to QT4, QObjectList should have changed.
How can I convert the following QT3 code to QT4?
QObjectList *l = this->queryList( "TableButton" ); // get all its children which is TableButton
QObjectListIt it( *l ); // iterate over the buttons
while ( it.current() != 0 )
{
// for each found button...
((TableButton *)(it.current()))->close( TRUE );
++it;
}
delete l;
QObjectList *l = this->queryList( "TableButton" ); // get all its children which is TableButton
QObjectListIt it( *l ); // iterate over the buttons
while ( it.current() != 0 )
{
// for each found button...
((TableButton *)(it.current()))->close( TRUE );
++it;
}
delete l;
To copy to clipboard, switch view to plain text mode
Thanks!
Bookmarks