[Qt-interest] qreal precision problem

Ankit Agarwal ankit17.ag at gmail.com
Mon Sep 21 12:14:22 CEST 2009


Hi,
I have a QTableWidget. I need to add qreal values to a particular column.
Sorting is enabled on the table.
I use setData() for setting the data in the column.

Problem : I need to show only 2 digits after decimal places.

How can I control this?

-- 
Regards,
Ankit Agarwal
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090921/894db0e8/attachment.html 


More information about the Qt-interest-old mailing list