Here's my use case (very simplified).
I have some data from DB in QSQLTableModel and I need to transform it: merge few fields into one (and display as such) or split one field into few. How and where this should be done in Model/View?
Notes:
I tried using AbstractProxyModel to do this, but I guess, it's suitable only for filtering or sorting. I could allocate new data and return QModelIndex (which carries the pointer to the data) but which object should deallocate the data later?
Modifying the View object also wouldn't help because it processes every table cell separately.
Mind that I can't alter database in any way. How to do this in Qt? I already spend two whole days on this only to run into one wall after another.