Re: [Interest] QFileSystemModel

2016-08-07 Thread Igor Mironchik
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 amazin

Re: [Interest] QFileSystemModel

2016-08-07 Thread Igor Mironchik
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 wor

Re: [Interest] QFileSystemModel

2016-08-07 Thread Igor Mironchik
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

Re: [Interest] QFileSystemModel

2016-08-07 Thread André Somers
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 Igo

[Interest] QFileSystemModel

2016-08-07 Thread Igor Mironchik
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 canFetchMor

[Interest] QFileSystemModel name enable to be edited

2013-05-30 Thread Sujan Dasmahapatra
I have QFileSystemModel in my QTreeView. When click on a directory in the model I want to enable the name to be edited just like windows folders. How can I make it enabled and let user write the new name. Any help is appreciated. -- Thanks & Regards Sujan _

[Interest] QFileSystemModel expand indicator

2013-05-30 Thread Sujan Dasmahapatra
I have a QFileSystemModel which set to my QTreeView as model. Somefolder structure is present in the root. When some folder does not have any child folder still the expand indicator(Triangle shape) is appearing left side. How can I stop it not to appear if no folder is present. Any help is highly

Re: [Interest] QFileSystemModel broken in Qt5? (minimal example)

2013-01-21 Thread Wilhelm
Am 22.01.2013 08:50, schrieb Mandeep Sandhu: > On Tue, Jan 22, 2013 at 12:47 PM, Wilhelm wrote: >> Hi all, >> >> I have this minimal example: >> >> - >> #include >> #include >> >> int main(int argc, char *argv[]) >> { >> QApplication a(argc, argv); >> >> QFileSystemModel* fileSys

Re: [Interest] QFileSystemModel broken in Qt5? (minimal example)

2013-01-21 Thread Mandeep Sandhu
On Tue, Jan 22, 2013 at 12:47 PM, Wilhelm wrote: > Hi all, > > I have this minimal example: > > - > #include > #include > > int main(int argc, char *argv[]) > { > QApplication a(argc, argv); > > QFileSystemModel* fileSystemModel = new QFileSystemModel(0); > fileSystemModel->se

[Interest] QFileSystemModel broken in Qt5? (minimal example)

2013-01-21 Thread Wilhelm
Hi all, I have this minimal example: - #include #include int main(int argc, char *argv[]) { QApplication a(argc, argv); QFileSystemModel* fileSystemModel = new QFileSystemModel(0); fileSystemModel->setRootPath(QDir::homePath()); fileSystemModel->setFilter(QDir::AllDirs