[Qt-qml] FolderListModel
Thomas PABST
thomas.pabst at gmail.com
Mon Nov 22 16:19:28 CET 2010
Hi,
I'm currently developing a file manager with the new FolderListModel
appeared on Qt 4.7.1.
import QtQuick 1.0
import Qt.labs.folderlistmodel 1.0
Rectangle {
width: 300;
height: 400;
ListView {
FolderListModel {
id: foldermodel
nameFilters: ["*"]
}
Component {
id: filedelegate
Text { text: fileName }
}
model: foldermodel
delegate: filedelegate
}
However, this example show us only one file. I'm looking for the better way
to show all files.
How can we define the number of the file automatically. Can we do that only
with Qml or we should use both qml/c++ ?
I'm thinking about the Repeater element, ListView element or grid element,
but we must define the number of case each time !
-----------------------------------------------------
Thomas PABST
thomas.pabst at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101122/83e1bb76/attachment.html
More information about the Qt-qml
mailing list