I’m trying to use Model-View approach in my app. I have a TableView that is filled by data. And I have several outside fields to edit data. As soon as I click the row I take the data from tableview’s field and put into outside field. Then I want when I click the button the data into tableview to be updated from the field. How to do that?
Thanks
QAbstractItemModelhas a signalQAbstractItemModel::dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight)that you need to emit when an Item is changed.QAbstractItemViewhas a slotQAbstractItemView::update(const QModelIndex & index)that you can call to update an item in a cell