Hi,
I have already build table view (by customizing QAbstractItemModel & QTableView).
My table view looks as below
Level Name Rank Sec
0 Rajesh 1 A
1 Krish 2 A
2 Ram 3 B
1 Krish 4 C
0 Krish 5 B
1 Krish 6 a
1 Krish 7 A
0 Rajesh 1 A
1 Krish 2 A
2 Ram 3 B
0 Rajesh 1 A
1 Krish 2 A
2 Ram 3 B
Level Name Rank Sec
0 Rajesh 1 A
1 Krish 2 A
2 Ram 3 B
1 Krish 4 C
0 Krish 5 B
1 Krish 6 a
1 Krish 7 A
0 Rajesh 1 A
1 Krish 2 A
2 Ram 3 B
0 Rajesh 1 A
1 Krish 2 A
2 Ram 3 B
To copy to clipboard, switch view to plain text mode
Now based on the level column I need to build the tree, Is it possible to re use the same model(from table view) and create tree view based on level column ?
or do I need to create separate new model for tree again. If it is possible please let me know what i need to implement for this.
Tree view : all the Level 0's are parents, followed by 1's are childs of 0's and 2's are childs of 1's.
Thanks in Advance :-)
Bookmarks