QString::number() - zero padding?
Posted
by elcuco
on Stack Overflow
See other posts from Stack Overflow
or by elcuco
Published on 2010-04-11T19:36:43Z
Indexed on
2010/04/11
19:43 UTC
Read the original article
Hit count: 336
qt4
|stringformat
I want to "stringify" a number and keep leading zeros. Unlike this question:
http://stackoverflow.com/questions/885401/print-trailing-zeros-in-a-qstring
I also need this in hex. By code now uses this, which is not enough:
QString::number(myNumber,16).toUpper()
© Stack Overflow or respective owner