QT - MVC - Refreshing column and row data in the model that is passed to View
Hello All,
I am passing data to the View(Qtitan::GridBandedTableView similar to TableView) using Model(QStandardItemModel). I want to refresh the data(both columns and rows) when I select a different value in the drop down. Can you please help me with this.
I am populating QStandardItemModel using
model->setItem.
I am passing model to view using
grid->view<Qtitan::GridBandedTableView>()->setModel(model);
Re: QT - MVC - Refreshing column and row data in the model that is passed to View
QStandardItem's setData() should already emit the dataChanged() signal, so you should be ok.
Cheers,
_