Results 1 to 5 of 5

Thread: Getting Child Items from QStandardItemModel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Getting Child Items from QStandardItemModel

    This looks like a job for a proxy model. My knowledge level is not really good enough to rattle off an exact solution. Have a read of the QAbstractProxyModel documentation and a look at the browser demo's history handling models and this related QtLabs article.

  2. #2
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 7 Times in 7 Posts

    Default Re: Getting Child Items from QStandardItemModel

    Thanks Chris. I will look into it.

    Guys, Anybody who have done like this. Please help me out.

    Thanks.

  3. #3
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 7 Times in 7 Posts

    Default Re: Getting Child Items from QStandardItemModel

    Hey!

    treeView->setRootIndex(...) will do the necessary. Thanks.

  4. #4
    Join Date
    Mar 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting Child Items from QStandardItemModel

    Hi,

    I am also facing the similar issue, but I didnt get the usage of "treeView->setRootIndex(...)". Could you please explain more?

Similar Threads

  1. Replies: 3
    Last Post: 19th November 2009, 14:10
  2. QTreeWidget Infinity Child items
    By aekilic in forum Qt Programming
    Replies: 2
    Last Post: 1st June 2009, 13:19
  3. Replies: 2
    Last Post: 24th August 2008, 14:42
  4. Replies: 2
    Last Post: 23rd July 2008, 17:48
  5. Problem inserting child items into a QAbstractItemModel
    By Valheru in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2006, 18:35

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.