[Qt-interest] QTreeView::expandAll() bug ?

Stephen Collyer scollyer at netspinner.co.uk
Fri Jun 19 20:33:33 CEST 2009


2009/6/19 Benjamin Meyer <ben at meyerhome.net>

>
>
> When you call fetchMore on QDirModel it will immediately fetch, while
> in QFileSystemModel it will ask its private thread to do it.  As some
> point in the near future the thread will return the results to the
> model and it will add new rows.


That sounds like it may be the problem.


>  It really sounds like you want to use
> QDirModel rather then QFileSystemModel.  This behavior difference is
> the primary reason why QDirModel is not depreciated as some
> applications want to have that information immediately rather then
> lazily.
>

Yes, it seems that QDirModel may be more appropriate for my needs.
I'll swap iit in and see how things go.

Thanks for the help.

-- 
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090619/ca9bdd5d/attachment.html 


More information about the Qt-interest-old mailing list