I'm using Qt 5.4.
I need to format a QString
representing a number and make sure that it's always with 3 digits, adding trailing zeros.
Let me give an example:
If the string is "1" I need "100".
If the string is "13" I need "130".
If the string is "472" no changes.
Is there a way to do this without checking the length of the string?