I would like to know if the user resizes the columns of a QTreeWidget, but I can't seem to find a way to do this.

I have tried using the itemPressed/Clicked/etc signals in the QTreeWidget, but clicking the headerItem obviously doesn't cause these signals to be emitted.

I have also tried to capture the mouseRelease events on both the QTreeWidget widget directly, and its viewport, but neither seem receive the Release event when clicking the header.

Does anyone know how I could do this?