tags:

views:

51

answers:

2

View of high number

How to make it show large numbers in QTableView like 10030232145 and not as 1.02342e+10?

A: 

One way would be to override data() in your model class to return a QString formatted the way you would like for Qt::DisplayRole items.

Arnold Spence
+1  A: 

The standard answer for changing how a view displays its data is to investigate your own item delegate.

Caleb Huitt - cjhuitt