Results 1 to 4 of 4

Thread: Strange output with QFileSystemModel bug?

  1. #1
    Join Date
    Jan 2014
    Posts
    76
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Strange output with QFileSystemModel bug?

    Hi all,
    I have problem with QFileSystemModel class because when i try use a basic code like this
    Qt Code:
    1. QFileSystemModel model;
    2.  
    3. model.setRootPath( ":/" );
    4. ui->treeView->setModel( &model );
    To copy to clipboard, switch view to plain text mode 

    get on output strange messages like this
    Qt Code:
    1. 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
    To copy to clipboard, switch view to plain text mode 

    Can you help me?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Strange output with QFileSystemModel bug?

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

  3. #3
    Join Date
    Jan 2014
    Posts
    76
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Strange output with QFileSystemModel bug?

    Code is ok
    I posted basic example but QFileSystemModel is a member class create on the stack and other
    2 statement
    Qt Code:
    1. model.setRootPath( ":/" );
    2. ui->treeView->setModel( &model );
    To copy to clipboard, switch view to plain text mode 

    are in constructor class

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

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Strange output with QFileSystemModel bug?

    What if you use a path of the computer's file system?
    E.g. QDir::homePath()

    Cheers,

Similar Threads

  1. strange output using topercentencoding()
    By raj_iv in forum Qt Programming
    Replies: 3
    Last Post: 5th December 2012, 08:25
  2. Replies: 1
    Last Post: 20th July 2012, 12:46
  3. Replies: 3
    Last Post: 27th August 2011, 22:44
  4. Replies: 8
    Last Post: 27th September 2010, 15:10
  5. Strange output: Can't compile for WinCE to save my life!
    By codeslicer in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2010, 15:55

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.