I'm trying to update a content on QTableView.
I have the following:
QModelIndex tempIndex = this->tbView->model()->index(....); //This returns the valid index that I want to change the value
this->tbView>model()->setData(tempIndex, tempVariant, Qt::EditRole+2);//Column I want to change is defined by Qt::EditRole+2
Shouldnt this be it?
Could you show us the implementation of your setData model function ?
I have not overloaded the setData for that model.
Does the base model you use have a functional implementation of it? QAIM's implementation does nothing.
Well that answers why its not doing anything. Thanks =)
How could it do anything? After all, it does know nothing about how in your subclass the data will be stored...