code: def setCurrentRegItem(self, regItem):
          
          rowIndex = self.model().indexFromItem(regItem)
          if not rowIndex.isValid():
              logger.warn("Can't select {!r} in table".format(regItem))
          self.setCurrentIndex(rowIndex)
docs: Sets the current registry item.