Hi,
Thank to wysota.
THis is example how to convert int to QString with defined size

Qt Code:
  1. int i;
  2. QString str;
  3. i = 5;
  4. str = QString("%1").arg(i, 5, 10, QChar(48));
To copy to clipboard, switch view to plain text mode 

Thank you