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

Interesting idea. But how can I select all checked files to the list?

Top directory can be checked, then some directories in it can be unchecked, and I want to know what files were selected...


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