code: def setCurrentIndex(self, y, x):
          
          self.dataTable.selectionModel().setCurrentIndex(
              self.dataTable.model().index(y, x),
              QItemSelectionModel.ClearAndSelect)
docs: Set current selection.