code: def dragMoveEvent(self, event):
          
          index = self.indexAt(event.pos())
          if index:
              dst = self.get_filename(index)
              if osp.isdir(dst):
                  event.acceptProposedAction()
              else:
                  event.ignore()
          else:
              event.ignore()
docs: Reimplement Qt method