List and load childs as new parent
what is need to achieve to load item children's as new content of list when using QAbstractlistModel and Qml ? I would like that when user clicks item which is folder type its load its content as new content.
One option is also create Breadcrumb type functionality but is there any examples for that ?
Re: List and load childs as new parent
One option is to use a DelegateModel on top of the actual tree model and set the rootIndex
http://doc.qt.io/qt-5/qml-qtqml-mode...rootIndex-prop
Cheers,
_
Re: List and load childs as new parent
Can it used with TableView ? Or is ListView better ?
Re: List and load childs as new parent
Should works with both.
Both of them treat the model as a list model.
So it is just a matter how you want the view to look and behave.
Cheers,
_