if ( !createConnections() ) qFatal( "Bye!!!" ); QSqlQuery query( "SHOW DATABASES" ); QStringList dblist; QString dbname; while ( query.next() ) { dbname = query.value(0).toString(); dblist.append( dbname ); qDebug( "\t%s", dbname.latin1() ); }