My double is 00.0 format. when I set it to QLCDNumber .display(double)
it automatically removes the precisions and displays 0
02.0 -> as 2.0
0.0 -> 0
20.0 -> 20
and so on. How can I force it keep it's format?
Added after 9 minutes:
I did this:
QString str = QString::number(f, 'f', 1);
now, how can I padleft the float? so that when I enter 02.0 it shows it and not 2.0? does qt support it?
Bookmarks