If vertical scrollbar is not visible while QTreeWidget is being sorted, the horizontal size of the items area is expanded with each sort.
The cause for this issue is commit:
Steps to reproduce:
- Run attached sample
- Press "Broken" button several times
- EXPECTED: Visuall nothing changes with each subsequent button click
- ACTUAL: The horizontal area of item view is expanded with each click