[PyQt] QTreeWidget - drag&drop help

Baz Walter bazwal at ftml.net
Thu Oct 22 23:24:38 BST 2009


Taylor Carrasco wrote:
> I can't grab which QTreeItemWidget was dragged, and the QTreeItemWidget it
> was dragged onto (parented under).

http://doc.trolltech.com/4.5/qtreeview.html#rowsInserted

     def rowsInserted(self, parent, start, end):
         print parent.row(), start, end
         QtGui.QTreeWidget.rowsInserted(self, parent, start, end)



More information about the PyQt mailing list