Hi,

I have a QTreeView with QAbstractItemModel (read- only). On click of a every node, I will be adding a dummy node called "Browsing" under the parent-node and delete it when the response comes to fill the QTreeview.

Adding Dummy node and deleting it is working as expected as I am using beginInsertRows/endInsertRows/beginremoveRows/endRemoveRows. But the problem is, whenever the dummy node is getting deleted under any hierarchy, entire TreeView is getting collapsed to the topNode.

Tried overriding the removeRows() function , but the behavior is still same. Please give some inputs on how do I delete a row without affecting the current tree expand/collapse view.