code: def get_filename(self, index):
          
          if index:
              path = self.fsmodel.filePath(self.proxymodel.mapToSource(index))
              return osp.normpath(to_text_string(path))
docs: Return filename from index