can you attach the full code then it is easyer to explain

form the previous piece of code you should change your selecion code
Qt Code:
  1. selected_row=proxyModel->mapToSource(selectedList.at(i)).row();
To copy to clipboard, switch view to plain text mode 
change proxyModel to the name of your proxy model