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.


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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.