[Interest] QFileSystemModel
André Somers
andre at familiesomers.nl
Sun Aug 7 12:29:21 CEST 2016
Use a proxy model instead, such as CheckableProxyModel. Google for it, the example app works in a QFileSystemModel. You do *not* want to iterate deep into a tree model such as QFSM just for keeping track of checked states...
André
Verstuurd vanaf mijn iPhone
> Op 7 aug. 2016 om 11:21 heeft Igor Mironchik <igor.mironchik at gmail.com> het volgende geschreven:
>
> Hi,
>
> I derived from QFileSystemModel to have check boxes on files and directories. It works.
>
> I want to recursively check all files and all directories within checked one, but rowCount() for checked directory returns 0 if this directory wasn't expanded in tree view.
>
> I played with canFetchMore() and fetchMore(). It doesn't help.
>
> How can I solve this problem?
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list