aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-qml/test/File.qml
blob: 4713a454136077cb74668536cb4a635b0b6b6571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick 2.0
import Qt.labs.folderlistmodel 2.1

ListView {
    width: 200; height: 400

    
    FolderListModel {
      id: folderModel 
      folder: "/usr/local/videos"
    }

    Component {
        id: fileDelegate
        Text { text: fileName }
    }

    model: folderModel
    delegate: fileDelegate
    Component.onCompleted: { console.log(folderModel.count) }
}
bgstack15