class DragDrop(QtGui.QWidget):
def __init__(self):
super(DragDrop, self).__init__()
self.list1 = QtGui.QListWidget()
self.list1.setDragEnabled(True)
self.list1.setDropIndicatorShown(True)
self.list1.setDragDropMode(self.list1.DragDrop)
self.list1.setDefaultDropAction(QtCore.Qt.MoveAction)
self.list2 = QtGui.QListWidget()
self.list2.setDragEnabled(True)
self.list2.setDropIndicatorShown(True)
self.list2.setDragDropMode(self.list1.DragDrop)
self.list2.setDefaultDropAction(QtCore.Qt.MoveAction)
self.list1.addItems(["Item%02d" % i for i in xrange(5)])
layout = QtGui.QHBoxLayout(self)
layout.addWidget(self.list1)
layout.addWidget(self.list2)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f39d0041-fb02-41ce-8978-94b8e2b6e3c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
If you redefine the dropEvent() method on the QListWidget then you will be able to emit a signal
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/e917c470-64e6-4457-8ffc-28b03f790f75%40googlegroups.com.