
Originally Posted by
Santosh Reddy
Wysota, How do you think QIdentityProxyModel will address this?
It will call
sourceModel()->createIndex(index.row(), index.column(), index.internalPointer());
sourceModel()->createIndex(index.row(), index.column(), index.internalPointer());
To copy to clipboard, switch view to plain text mode
which will preserve:
- the model
- row and column
- implicitly the parent
- the internal pointer
Your implementation will only preserve row and column and maybe also the internal pointer. But certainly not the model (thus calling index.data(...) will return wrong values) and probably not the parent.
You should treat QIdentityProxyModel as a NO-OP, nothing more, nothing less.
Bookmarks