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.mironc...@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@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

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

Reply via email to