Results 1 to 3 of 3

Thread: How to store and access QDirIterator?

  1. #1
    Join Date
    Feb 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default How to store and access QDirIterator?

    Hi All

    How do you keep a container class with QDirIterators to maintain their positions between function calls? I have ten files that I want to keep going back to, but I dont want the QDirIterator to start at the beginning every time. I've tried QVector and QMap to store them in the header file, but I get errors when trying to access.

    Thanks

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

    Default Re: How to store and access QDirIterator?

    Your value type needs to be QDirIterator*, i.e. pointers to QDirIterator objects.

    Cheers,
    _

  3. #3
    Join Date
    Feb 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to store and access QDirIterator?

    Great, thanks!

Similar Threads

  1. Problem with QDirIterator
    By LaurentDuroisin in forum Qt Programming
    Replies: 1
    Last Post: 5th January 2016, 13:24
  2. QDirIterator internals?
    By zaphod.b in forum Qt Programming
    Replies: 8
    Last Post: 6th December 2013, 11:42
  3. Windows Certificate Store access
    By A.O in forum Qt Programming
    Replies: 1
    Last Post: 16th April 2013, 20:23
  4. Iterating with QDirIterator seems slow
    By TheShow in forum Qt Programming
    Replies: 1
    Last Post: 6th January 2010, 17:55
  5. QDirIterator and windows drives
    By invictus in forum Qt Programming
    Replies: 0
    Last Post: 8th March 2009, 20:48

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.