representation of numbers in QTableView...
hi all, the moment the numbers i have pass the millon barrier the QtableView converts them into, for example, 100023e+12....
how can i change that? i want to see them plain numbers and i dont want to change the model column type to QString...
thank u all in advance
Re: representation of numbers in QTableView...
QStyledItemDelegate specifically QStyledItemDelegate::displayText() and QString::number() if it is just the display (not the editor) you wish to affect.
Re: representation of numbers in QTableView...
Are you saying i should reimplement some methods of the class QStyledItemDelegate??? can you show me a little example cause im trying this...
Code:
QStyledItemDelegate *display = new QStyledItemDelegate ();
this->ui->data_table->setItemDelegateForColumn (5, display);
with no luck...i ll keep searching
thanks a lot!
Re: representation of numbers in QTableView...
Yes, you should subclass QStyledItemDelegate and reimplement displayText()
Re: representation of numbers in QTableView...