Closed ivoflipse closed 10 years ago
This probably requires overwriting the event, because I'm trying to use measurement_item.setChildIndicatorPolicy(QtGui.QTreeWidgetItem.DontShowIndicator)
, which doesn't seem to do anything...
Turns out I was looking for the wrong term. I should have been looking at expanding instead of collapsing.
self.measurement_tree.setItemsExpandable(False)
did the trick.
Because of the changes I made, when you select a measurement in the tree by double clicking, it also collapses the tree. Rather annoying if you ask me. Perhaps it would also be annoying if you couldn't collapse it, but this is even worse.