QTreeWidget: separating cursor from selection
I'm trying to use QTreeWidget for a file browser. I want to have separate concepts of selection (items to which operations are applied) and cursor (that can be used for extending selection). Like in Total Commander: red is selection, moving cursor doesn't affect selection unless Shift is pressed.
Is there any neat way to implement this with QTreeWidget? Or not neat but at least working and not requiring to manually handle half the events?