Results 1 to 6 of 6

Thread: Help needed in creating Tree Model.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2008
    Posts
    89
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Help needed in creating Tree Model.

    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
    Last edited by kaushal_gaurav; 18th December 2008 at 09:23.

Similar Threads

  1. Creating a Tree Model from a QStandardModel
    By kaushal_gaurav in forum Qt Programming
    Replies: 3
    Last Post: 19th December 2008, 06:47
  2. problem creating dom tree
    By dreamer in forum Qt Programming
    Replies: 2
    Last Post: 8th May 2008, 08:12
  3. creating a Tree
    By mickey in forum General Programming
    Replies: 0
    Last Post: 20th April 2008, 17:57
  4. using the example of simple tree model
    By krishna.bv in forum Qt Programming
    Replies: 1
    Last Post: 22nd December 2006, 12:28
  5. creating a tree hierarchy using QStandardModel
    By wind in forum Qt Programming
    Replies: 3
    Last Post: 19th September 2006, 21:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.