TreeWidget

class pyqtgraph.TreeWidget(parent=None)

Extends QTreeWidget to allow internal drag/drop with widgets in the tree. Also maintains the expanded state of subtrees as they are moved. This class demonstrates the absurd lengths one must go to to make drag/drop work.

__init__(parent=None)
itemMoving(item, parent, index)

Called when item has been dropped elsewhere in the tree. Return True to accept the move, False to reject.

Previous topic

MultiPlotWidget

Next topic

VerticalLabel

This Page