[SOLVED] How to join 3 columns into one?
I have 3 columns in table(c1,c2,c3). I want to display them in one column, joined in specified way using QTableView or derived class on the data side i use QSqlRelationalTableModel.
For example if c1 and c3 are present in the row. I want to to format them as:
"[c1]dm3; [c3] mol/dm3". If only c2 is set i want to just display
I want to affect only way the data is shown.
What do you think about this?
Looks like a work for a QAbstractProxyModel derived class