Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTreeWidget: separating cursor from selection
Violet Giraffe last edited by
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?