TableModel question about Qt::CheckStateRole
Unsolved
General and Desktop
-
The data for my table is held in a vector of class instances.
If the data in a class instance that represents a row/column intersection is changed, I know I need to tell the TableModel that it has been changed.
My data mf() for the model has:
if (role == Qt::CheckStateRole) { if (0 == index.column()) return file.m_bChecked; // can be QT::Checked or Qt::Unchecked else return QVariant(); }
What should I do if I modify the m_bChecked variable for a row - do I tell the model that column 0 of the row has changed or ???