QTreeView and custom model: Problems while selecting items

Printable View