Results 1 to 6 of 6

Thread: Help needed in creating Tree Model.

Hybrid View

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

    Default Re: Help needed in creating Tree Model.

    No i do not want to copy data nor to modify data.
    I just need it for display in list view...
    The new model should have three columns but the orignal model has 10 columns but i just need data from the three columns and that too in a tree from.

    item1 ----|
    -----------|----SubItem1----|---SubSubItem1
    -----------|-------------------|---SubSubItem2
    -----------|
    -----------|----SubItem2
    -----------|----SubItem3
    -----------|
    item2 ----|
    -----------|----SubItem1
    -----------|----SubItem2 ----|---SubSubItem1
    -----------|--------------------|---SubSubItem2
    -----------|----SubItem3
    -----------|

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Help needed in creating Tree Model.

    You can either implement a proxy model that will reorder items and modify the number of columns and rows or create a new (tree) model with three columns and fill it with data yourself.

    Really, showing the same ascii art all the time won't help. Giving us something compilable what we could run and see ourselves would be a much better idea.

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
  •  
Qt is a trademark of The Qt Company.