QString new( QString( "00000%1" ).arg( 1234 ) );
new = new.right( 5 );
Others may find more efficient solutions
QString new( QString( "00000%1" ).arg( 1234 ) );
new = new.right( 5 );
Others may find more efficient solutions
Take a look at 'fieldWidth' and 'fillChar' parameters of QString::arg().
J-P Nurmi
Bookmarks