If I'm right you want to combine QFileSystemModel and QStandardItemModel in one model and then display it in a treeview?
Then I'd sugegst using a QAbstractProxyModel, wysota correct me if I'm wrong, haven't dealt with that so much![]()
If I'm right you want to combine QFileSystemModel and QStandardItemModel in one model and then display it in a treeview?
Then I'd sugegst using a QAbstractProxyModel, wysota correct me if I'm wrong, haven't dealt with that so much![]()
Last edited by airglide; 8th December 2012 at 19:05.
To be honest we have no idea what you tried. I'm almost sure there is no "how to add another level of nodes to the filesystem model" tutorial available so you have to go past tutorials and do some thinking of your own. I would probably try some combined approach like having a custom model for the top nodes and attaching filesystem models for the nodes I need. But then I have some quite deep knowledge of how models work in Qt. I think building a model from scratch that is dynamically filled with data using canFetchMore() is also an option. But again this requires something more than just reading one or two tutorials.
owais_blore (10th December 2012)
Bookmarks