i used the connect as this below
Qt Code:
  1. connect(welldatamapper,SIGNAL(setCurrentModelIndex()),wellTableView,SLOT(currentChanged()));
  2. connect(wellTableView,SIGNAL(currentChanged()),welldatamapper,SLOT(setCurrentModelIndex()));
To copy to clipboard, switch view to plain text mode 

but it din't work!