[Interest] folderlistmodel qrc:/ with tableview
Damian Ivanov
damianatorrpm at gmail.com
Mon Jul 14 19:26:42 CEST 2014
Thanks FileDialog is sufficient for me! :)
2014-07-14 12:33 GMT+03:00 Rutledge Shawn <Shawn.Rutledge at digia.com>:
>
> On 13 Jul 2014, at 7:22 PM, Damian Ivanov wrote:
>
>> Hi all,
>>
>> Is it possible to use a folderlistmodel for a tableview?
>
> Yes the QtQuick.Dialogs FileDialog uses this implementation on platforms that don't have native dialogs; look at qtquickcontrols/src/dialogs/DefaultFileDialog.qml. (And if what you needed is a FileDialog then maybe you can just import it and use it. ;-)
>
>> I'm trying it but the tableview is empty.
>> Also with Qt Creator when I use as folder: for the folderlistmodel
>> "qrc:/myprefix" and I test it with console.log(folderlistmodel.get(2,
>> "fileName")) or any other index it returns files from the build
>> directory..
>
> So it seems. It's using QDir and QFileInfo internally, and the docs say that they can introspect resources. You can write up a bug if you like.
More information about the Interest
mailing list