[Interest] QFileSystemModel

Igor Mironchik igor.mironchik at gmail.com
Sun Aug 7 15:13:03 CEST 2016


Hi,


On 07.08.2016 13:29, André Somers wrote:
> 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...

I found. Nice. It works. :)

>
> 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