Okay thank you both.

Now I used QTreeView and QStandardItemModel and it works!

I will look into QTreeWidget for the sake of simplicity, but for now it works

So thanks!

DrDonut