checkbox checked or unchecked in dataChanged?
-
wrote on 12 Nov 2020, 19:21 last edited by
I have a checkbox in a TreeView and when I click on the checkbox, my model (which is derived from QAbstractItemModel) emits this function.
dataChanged(const QModelIndex &tl, const QModelIndex &br, const QVector<int> &roles) { ... }
Within this function, is there a way here to know if the checkbox that was clicked on is checked or unchecked?
-
Hi,
How did you implement that checkbox ?
-
wrote on 12 Nov 2020, 20:43 last edited by SRaD 11 Dec 2020, 21:36
Ok, nevermind, I think I've got it figured out. Thanks.
1/3