Use your selection model:
Qt Code:
  1. tableViewPowerDegree->selectionModel()->setCurrentIndex ( const QModelIndex & index, QItemSelectionModel::SelectionFlags command );
To copy to clipboard, switch view to plain text mode