PDA

View Full Version : QAbstractItemModel::dataChanged fires two times for single cell change



boo9
14th June 2016, 17:49
I am using QSqlTableModel + QTableView
Why does the QAbstractItemModel::dataChanged signal fires two times for single cell data change.
- first signal marks single cell changed
- second signal marks entire row



debug trace:
onTableDataChanged top.left.ndx(9,5) bottom.righ.ndx(9,5) rules.size=0
onTableDataChanged top.left.ndx(9,0) bottom.righ.ndx(9,10) rules.size=0

anda_skoa
14th June 2016, 19:32
Looks like two different signal emits to me, so they might caused by different things.

Cheers,
_