Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Using FolderListModel



  • 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



  • Hi Charlie,

    you can show the files by using the keyword name



  • @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.