[Closed] QStandardItem - parent-child with multiple columns
Hi All,
I am trying to get the out put which resembles QDireFileModel like below diagram
how to get this, please help me.
- class MyClass:
- name="A"
- lName="B"
- I tried :
- model.appendRow(parent)
- for index in range(10):
- myobj=MyClass()
- parent.setChild(index,1,myobj)
- parent.setChild(index,2,myobj)
- col-0 col-1 col-2 col-3 col-N
- -------------------------------------------
- -Parent-1
- -child1 ..... ..... .......
- -child2 ..... ..... .......
- -child3 ..... ..... .......
- ......... .... ..... ......
- -child-N .... ..... ......
- -Parent-2
- -child1 ..... ..... .......
- -child2 ..... ..... .......
- -child3 ..... ..... .......
- ......... .... ..... ......
- -child-N .... ..... ......
- -child-N .... ..... ......
2 replies
Have a look at this learning material [qt.nokia.com].
There is source code too.
You already [developer.qt.nokia.com] asked that question. Please do not double post. I am closing this topic.
You must log in to post a reply. Not a member yet? Register here!


