I have QTreeView and QStandatdItemModel. I have slot that connected to itemChanged signal, where I work up with new item data. Then I activated drag and drop possibility and find out that on mowing item I also receive itemChanged signal. But signature is only QStandardItem*, so I can't say what have happened - was item data changed or was it just moved, but I need to know that. How can distinguish was item changed or moved?
0
votes
2 Answers
1
votes
Copy of comment:
check other signals (documented in parent class) there is lots of possibilities (data change, move row/column).
1
votes
Use the dataChanged
signal instead.
This signal is emitted whenever the data in an existing item changes.