Results 1 to 4 of 4

Thread: QTreeView with multiple QDir models

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2011
    Posts
    14
    Qt products
    Qt3 Qt4 Qt Jambi
    Platforms
    MacOS X Windows
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default Re: QTreeView with multiple QDir models

    Having the same problem here. I can not find a simple example for beginners

  2. #2
    Join Date
    Jan 2011
    Posts
    55
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    12

    Default Re: QTreeView with multiple QDir models

    Take a look at this thread: http://www.qtcentre.org/threads/4534...ght=multimodel

    d_stranz was so kind to make and share a working example!

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: QTreeView with multiple QDir models

    Yes, but as I say in that thread, I was not able to get it to work successfully with directories as the child models. I think it has something to do with the fact that the file system model uses a watcher, and the tree does not get filled in completely. I don't have the time to play with it now, so if someone else can figure out what is wrong, that would make it a better example.

Similar Threads

  1. QTreeView and multiple models
    By Daher in forum Qt Programming
    Replies: 3
    Last Post: 3rd December 2019, 20:57
  2. QTreeView with multiple models
    By Daher in forum Qt Programming
    Replies: 5
    Last Post: 18th October 2011, 10:53
  3. View using multiple models
    By johnmauer in forum Qt Programming
    Replies: 13
    Last Post: 5th October 2010, 18:28
  4. QSortFilterProxyModel with multiple source models
    By hoshy in forum Qt Programming
    Replies: 1
    Last Post: 26th August 2009, 20:59
  5. QDir create multiple dirs
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 4th March 2009, 12:13

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.