[Qt-qml] work with folder property on FolderListModel

martin.jones at nokia.com martin.jones at nokia.com
Thu Nov 25 00:33:49 CET 2010


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-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com] On Behalf Of ext Thomas PABST
Sent: Thursday, 25 November 2010 1:31 AM
To: qt-qml at 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.pabst at gmail.com<mailto:thomas.pabst at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101125/cfdf65a8/attachment.html 


More information about the Qt-qml mailing list