I have created QTableView and add an QStandardItem checkbox into with this code:
....
QStandardItem *chkItem = new QStandardItem(true);
chkItem->setCheckable(true);
chkItem->setData(Qt::AlignCenter, Qt::TextAlignmentRole);
tblModel->appendRow(chkItem);
...
where tblModel is QStandardItemModel.
Now i wonder how can i catch the checkbox changed state event?
I have tryed catch the table click event but this is triggered every times user click on a cell (i have no idea to know whether the checkbox state has changed or not). Please give me a way to solve this problem.