I am trying to avoid setData() because I have many things depend on widget. QTableView has no cellChanged() signal, how suppose I catch user modification in view?
I am trying to avoid setData() because I have many things depend on widget. QTableView has no cellChanged() signal, how suppose I catch user modification in view?
You want to modify the data in the model, but you want to avoid setData()? Sorry, you've lost me. Using the model mechanisms is precisely the way you ensure that all views on the model stay in sync.
By placing a delegate on the view you can intercept the attempt to write data back into the model, see QItemDelegate::setModelData().
Bookmarks