code: def indexXY(self, index):
          
          rect = self.visualRect(index)
          return rect.x(), rect.y()
docs: Returns the top left coordinates of the item for the given index
  
          :param index: index for the item
          :type index: :qtdoc:`QModelIndex`
          :returns: (int, int) -- (x, y) view coordinates of item