If you wish to modify values returned by the model, reimplement data().
Thanks again wysota, I've implemented the data() and it's ok except that the table doesn't update itself when i modify values returned by the model. I've even
try emit dataChanged() signal but i'm getting a weird error:
error: C2662: 'QAbstractItemModel::dataChanged' : cannot convert 'this' pointer from 'const TCustomProxyModel' to 'QAbstractItemModel &'
Conversion loses qualifiers
error: C2662: 'QAbstractItemModel::dataChanged' : cannot convert 'this' pointer from 'const TCustomProxyModel' to 'QAbstractItemModel &'
Conversion loses qualifiers
To copy to clipboard, switch view to plain text mode
(TCustomProxyModel: my custom proxy model)
Just another thing: when i click on table the table update itself!!!
Bookmarks