Question

View of high number

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

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top