[Interest] How to filter QFileSystemModel for use in QML
Samuel Gaist
samuel.gaist at edeltech.ch
Mon Aug 17 09:43:14 CEST 2015
On 17 août 2015, at 09:23, Rutledge Shawn <Shawn.Rutledge at theqtcompany.com> wrote:
>
> On 13 Aug 2015, at 14:14, Julius Bullinger <Julius.Bullinger at asctec.de> wrote:
>
>> Dear list,
>>
>> I'm having problems using QFileSystemModel in QML.
>
> Have you tried FolderListModel?
>
>
Hi guys,
There's a catch when using QFileSystemModel + DelegateModel.
The model being populate asynchronously, it will trigger a layout changed sometimes after the QML stuff is ready. That will result in a full reset which will clear the root index of DelegateModel.
The only workaround I've found currently is to use onRootIndexChanged to set again the correct index
Hope it helps
More information about the Interest
mailing list