Using FolderListModel
Unsolved
QML and Qt Quick
-
wrote on 30 Dec 2015, 14:49 last edited by
Hello,
I want use Qt.Labs.folderlismodel. I try this :
FolderListModel { id: folderModel folder: "file:///home/charlie/Dev" //rootFolder: "file:///home/charlie/Dev"
With folder I can show only folders (not files) and rootFolder doesn't works
Can you help me ?
Thank you very much.
Charlie
-
wrote on 30 Dec 2015, 15:59 last edited by
Hi Charlie,
you can show the files by using the keyword name
-
wrote on 31 Dec 2015, 12:01 last edited by
@CharlieG setting folder displayed both folders and files on the directory.
What I did was, I created a ListView and set FolderListModel as its model. Then on delegate item, you can use the folder properties to display the contents.
1/3