Take the 2-minute tour ×

It is easy to implement a file browser by using QFileSystemModel. But the listview UI is not pretty. So I want to implement a file browser using QML. the QML has model/view support. But how to display the filesystem tree in QML? Any clue would be appreciated.

share|improve this question

2 Answers 2


share|improve this answer
but how to use the folderlistmodel? ListView { FolderListModel{ id:foldermodel nameFilters: ["."] parentFolder: "e:/" showDirs: true showDotAndDotDot: false sortField: "Name" } Component{ id:filedelegate Text { text: fileName } } model:foldermodel delegate:filedelegate } But the screen displays nothing. –  catinred May 27 '11 at 7:22
Everything is explained in detail. Please spend some time reading the article . –  Abhijith May 27 '11 at 14:51
thanks. I have made it work. But still one question: the listview can not update when I add/delete file(s) or directory(ies). Is there any trick? –  catinred Jun 3 '11 at 17:34
doc.qt.nokia.com/4.7/… you have to emit a signal when data is changed , otherwise the view won't pick it up. –  Abhijith Jun 3 '11 at 17:43

I think its kind of late, but still it might help some one.

I recently created QML based filedialog for my project for Symbian using Qt Quick Components. Its implementation is here,

And here is sample application,

share|improve this answer

Your Answer


