Le 25/05/11 20:28, Anne-Laure Terrettaz-Zufferey a écrit :
Hello, In your first QListWidget, in function startDrag, you can use QtCore.QMimeData() to preserve the type of the object you are dragging. Something like that: mimeData = QtCore.QMimeData() mimeData.setText(fileName) # filename or index in the list or any other data that describe the object drag = QtGui.QDrag(self) drag.setMimeData(mimeData) and, in your second QListWidget: def dropEvent(self, event): data = ""> if data.text() == "data_expected": ... Regards |
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
