The "collapse" signal is emitted when the collapse() method is called. This normally occurs when the user clicks on the label of an expanded node.
Callback function