I am using a QLabel to display a number which ia a double.
I don't want so many significant digits. How do I cut the number of significant digits?Qt Code:
To copy to clipboard, switch view to plain text mode
I want 1.2345678 to display as 1.23
I am using a QLabel to display a number which ia a double.
I don't want so many significant digits. How do I cut the number of significant digits?Qt Code:
To copy to clipboard, switch view to plain text mode
I want 1.2345678 to display as 1.23
Qt Code:
QString s; s = s.setNum(1.2345678, 'g', 2); label->setText(s);To copy to clipboard, switch view to plain text mode
tommy (23rd January 2008)
Bookmarks