How to tell where an item was dropped in qlistview?
问题 I have a custom QListView: from PyQt4.QtCore import * from PyQt4.QtGui import * from Diagnostics import Trace2 #writes to log file import traceback class ListOrderView(QListView): itemMoved = pyqtSignal(int, int, QStandardItem) # Old index, new index, item def __init__(self, parent=None): try: super(ListOrderView, self).__init__(parent) self.setAcceptDrops(True) self.setDragEnabled(True) self.setDragDropMode(QAbstractItemView.InternalMove) self.setDefaultDropAction(Qt.MoveAction) self