The parent folder is easy to get, since there is a parentFolder property. There is no way to get a directory in the current folder, short of using the model in a repeater, for example. FolderListModel is quite simple and really only designed to allow selecting a file from a list. You could add a suggestion for a more fully featured filesystem model, but for now you will have to extend FolderListModel to suit your needs.
Martin. From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of ext Thomas PABST Sent: Thursday, 25 November 2010 1:31 AM To: qt-qml@trolltech.com Subject: [Qt-qml] work with folder property on FolderListModel Hi, I looking for a way to work with the folder property on a FolderListModel. The folder property is a string oriented in the path management. Is there an easy way to get the parent folder, or get a directory contained in this one ? I saw QUrl Class Reference, but that's only work with C++ ! Thanks ----------------------------------------------------- Thomas PABST thomas.pa...@gmail.com<mailto:thomas.pa...@gmail.com>
_______________________________________________ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-qml