I want to format a string by adding spaces using .arg, I used

QString(%1 %2 %3).arg(name,20).arg(" = ").arg(value);


the result i expect:

"Student Name = Jemes"

but I got the next , it left spaces before the name not after:

" Student Name = Jemes"


how i can make is start from the beginning and leave all the space after not before.


Thank you