Results 1 to 2 of 2

Thread: QDirModel::setLazyChildCount not working

  1. #1
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QDirModel::setLazyChildCount not working

    Hi,
    I have a dialog with a lot of edit fields which use the QCompleter with a QDirModel to autocomplete filenames, just like the Completer Example.
    The problem is that the QDirModel accesses my floppy drive to see if it has any folders which makes the application freeze for a while.
    According to the documentation QDirModel::setLazyChildCount(true) should take care of this, but that isn't the case. Should I file a bug report for this?
    Does anyone have a workaround which doesn't include filtering for the string "A:\"?

    I'm using Qt 4.2.2 for windows with MSVC2005.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDirModel::setLazyChildCount not working

    The docs don't state it'll not access the drive. QDirModel has to check if the path is a directory or not, it just doesn't look inside it to check if it has children.

Similar Threads

  1. QTextEdit::find() backward not working
    By sukanyarn in forum Qt Programming
    Replies: 1
    Last Post: 15th November 2006, 19:33
  2. Replies: 1
    Last Post: 11th June 2006, 22:25
  3. Mac OS X UI not working
    By hvengel in forum Qt Programming
    Replies: 3
    Last Post: 1st April 2006, 01:02
  4. Signals/Slots stopped working
    By Jimmy2775 in forum Qt Programming
    Replies: 8
    Last Post: 31st March 2006, 21:11
  5. QSettings - beginReadArray not working
    By Mike in forum Qt Programming
    Replies: 7
    Last Post: 9th January 2006, 21:24

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.