Hi,
I'm not able to find the corresponding method of solving this.
I have a int value and I want to get a QString with the format "XXXX", so when the value is 5 I need to get "0005".
Thanks,
Hi,
I'm not able to find the corresponding method of solving this.
I have a int value and I want to get a QString with the format "XXXX", so when the value is 5 I need to get "0005".
Thanks,
Òscar Llarch i Galán
Have a look at QString::arg() variant taking fieldWidth and fillChar parameters.
^NyAw^ (9th February 2012)
Hi,
Thank to wysota.
THis is example how to convert int to QString with defined size
Thank you
Bookmarks