Reputation: 11
I'm using a QTableView with an hiden invoice_id
column to manage invoices row,
I would like to know if there is a way to change the invoice_id
column value, for each row, before committing.
Upvotes: 0
Views: 263
Reputation: 11
The solution is to use setdata(),here is a little example:
model->setData(model->index(row, 1), QVariant(id));
Upvotes: 1