Didn't seem to be able to edit this post.

Here is the update: problem number 2 has been solved with the following code:
Qt Code:
  1. proxy.setFilterKeyColumn(0);
  2. QRegExp exp("^"+lastID+"$");
  3. proxy.setFilterRegExp(exp);
To copy to clipboard, switch view to plain text mode 
It now matches only the whole string. Some success.

No luck with problem number 1. QSortFilterProxyModel does not seem to work with a record more than 256 rows down from the top, no matter how the view is sorted. vidx comes back invalid in those cases. No idea why.

Come on experts, I need some help here! Anyone else having this problem?
Thanks for any advice.