I tried reformat data in cell (QTableView) with my custom model. But I just get crash. This is my code what I use..
Code:
{ if (role==Qt::DisplayRole && index.column()==3) { return index.model()->data(index, Qt::DisplayRole).toString().append("Rp. "); } }