[Qt-qml] work with folder property on FolderListModel
Thomas PABST
thomas.pabst at gmail.com
Thu Nov 25 16:05:04 CET 2010
Thanks, that is a good way.
Is there a easy way to know all property available with an qml element ? I
looked the documentation on
http://doc.qt.nokia.com/4.7-snapshot/qml-folderlistmodel.html but it seems
not up to date ! The parentFolder property does not appeared on the list.
-----------------------------------------------------
Thomas PABST
thomas.pabst at gmail.com
2010/11/25 <martin.jones at nokia.com>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101125/3931843d/attachment.html
More information about the Qt-qml
mailing list