Drag and drop within PyQt5 TreeView?
问题 I'm trying to implement a file directory using PyQt5. I'd like to incorporate drag and drop functionality within this tree to support both internal and external files (i.e. if I had some files on my desktop I'd like to be able to drop them into a folder in my PyQt view). This is what I have currently: from PyQt5.QtWidgets import QTreeView,QFileSystemModel,QApplication, QMenu, QAbstractItemView from PyQt5.QtCore import * from PyQt5.QtGui import * from src import config class Tree(QTreeView):