[Qt-interest] increasing the number of digit displayed in views

Jose Victor Reynoso jose.reynoso at vorticer.com.mx
Tue Jan 27 18:10:52 CET 2009


Maybe use :
    double numberDouble;
    QStandardItemModel *itemModel = new QStandardItemModel(rows, 
columns,  this);
     itemModel->setData(itemModel->index(i, j, QModelIndex()), 
*QString("%1").arg(numberDouble, 0, ´f´, 15)*, Qt::DisplayRole);

Cheers.
Victor

Jérémie Delaitre escribió:
> Hi,
>
> I have QTableView which contains real numbers. The problem is that the 
> view displays only 6 digits while I need more (15 would be perfect!).
>
> How can I change that ?
>
> Regards,
>
> Jérémie Delaitre
> TGS France
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>   



More information about the Qt-interest-old mailing list