Quote Originally Posted by JD2000 View Post
As I understand it, you have

Table(row, column) is the parent of Table(row, column+1)

It would seem to me that all you need to do is iterate through your table, adding items to the tree, in pseudo code this would be:

For row
insert parent

For column
insert child
next column

next row

the number of rows and colums can be obtained from your tableModel:

TableModel->row count();
TableModel->columncount();

the methods for inserting nodes are included in the QTreeWidgetItem class.
Indeed, it’s funny considering the fact that that the model/view was made for easy programming. Or maybe it’s just my bad luck having this problem...

PS: wysota, you have no idea how much I would love to share just a fraction of your insight in this model/view thing! Thanks for trying to solve it.