kaushal_gaurav
18th December 2008, 09:19
Hi,
Please help me in creating a tree model.
I need to create a model with parent - child relationship.
I have all the data present in another QStandardItemModel.
I think creating a new proxy model will do the job. But please help me in
how can i arrange data in the new model and what will be the row and column count of this
new model.
I need the data in the model to be structured in
item1 ----|
-----------|----SubItem1----|---SubSubItem1
-----------|-------------------|---SubSubItem2
-----------|
-----------|----SubItem2
-----------|----SubItem3
-----------|
item2 ----|
-----------|----SubItem1
-----------|----SubItem2 ----|---SubSubItem1
-----------|--------------------|---SubSubItem2
-----------|----SubItem3
-----------|
The hirearchy is just three level deep.
Please Help..........................
Regards,
GK
Please help me in creating a tree model.
I need to create a model with parent - child relationship.
I have all the data present in another QStandardItemModel.
I think creating a new proxy model will do the job. But please help me in
how can i arrange data in the new model and what will be the row and column count of this
new model.
I need the data in the model to be structured in
item1 ----|
-----------|----SubItem1----|---SubSubItem1
-----------|-------------------|---SubSubItem2
-----------|
-----------|----SubItem2
-----------|----SubItem3
-----------|
item2 ----|
-----------|----SubItem1
-----------|----SubItem2 ----|---SubSubItem1
-----------|--------------------|---SubSubItem2
-----------|----SubItem3
-----------|
The hirearchy is just three level deep.
Please Help..........................
Regards,
GK