PDA

View Full Version : Strange output with QFileSystemModel bug?



atomic
10th May 2014, 10:25
Hi all,
I have problem with QFileSystemModel class because when i try use a basic code like this


QFileSystemModel model;

model.setRootPath( ":/" );
ui->treeView->setModel( &model );


get on output strange messages like this


09:11:06.781 [2] INFO DaemonClient connecting to hub05.10 09:11:06.781 [2] DEBUG HubInfo hub.ini was not found05.10 09:11:09.328 [2] INFO DaemonClient connecting to hub05.10 09:11:09.328 [2] DEBUG HubInfo hub.ini was not found05.10 09:11:11.875 [2] INFO DaemonClient connecting to hub05.10 09:11:11.875 [2] DEBUG HubInfo hub.ini was not found05.10 09:11:14.421 [2] INFO DaemonClient connecting to hub05.10 09:11:14.421 [2] DEBUG HubInfo hub.ini was not found05.10 09:11:16.953 [2] INFO DaemonClient connecting to hub05.10 09:11:16.953 [2] DEBUG HubInfo hub.ini was not found05.10 09:11:17.343 [1] TRACE OverlayModule process detach


Can you help me?

anda_skoa
10th May 2014, 11:20
That output is obviously not related to your code at all.

But your code looks very wrong, the model is created on the stack and the code doesn't look like it is in main().

Cheers,
_

atomic
10th May 2014, 11:43
Code is ok ;)
I posted basic example but QFileSystemModel is a member class create on the stack and other
2 statement


model.setRootPath( ":/" );
ui->treeView->setModel( &model );


are in constructor class ;)

I get this output only when i use QFileSystemModel class but program works fine.
Maybe you know where is problem?

anda_skoa
10th May 2014, 15:21
What if you use a path of the computer's file system?
E.g. QDir::homePath()

Cheers,