On 17 août 2015, at 09:23, Rutledge Shawn <shawn.rutle...@theqtcompany.com> 
wrote:

> 
> On 13 Aug 2015, at 14:14, Julius Bullinger <julius.bullin...@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

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to