[Interest] QFileSystemModel

Igor Mironchik igor.mironchik at gmail.com
Sun Aug 7 17:43:14 CEST 2016


Hello,


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

It's really amazing code! What do you think if to change license to BSD 
or MIT? This is very useful classes, I tell about CheckableProxyModel. 
It works like a charm. :)

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