The indexes returned by the view's selection model are obviously from the model that the view works on.
In your case the proxy model.
They don't make any sense in the context of the proxy's source model.
If you really need an index of the source model, use the proxy's mapToSource() function.
If you just need data from the index, use its data() function.
Cheers,
_
Bookmarks