How to preserve selection in QTreeView

Printable View