code: def selection(self):
          
          sel = QtGui.QItemSelection()
          for index in self.selectedIndexes():
              sel.select(index, index)
          return sel
docs: Returns items in selection as a QItemSelection object