How to display the data in a tableview?



  • I created a QTabelView in UI, this tableview's model is set to a model from QAbstractTableModel, in the model there is a QList<Qlist<QVariant>> holding all the data to be displayed. The problem is one column data is double datatype with precision of 8 bits, such as 256.12345678, In the table view, it only display the data as 256.123, I want it to display all 8 precision bits, 256.12345678. How can I do that? thanks for help.


  • Lifetime Qt Champion

    Hi,

    You have several possibilities:

    Custom QStyledItemDelegate

    Custom QIdentityProxyModel

    Hope it helps


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.