PDA

View Full Version : How to store and access QDirIterator?



robster
20th February 2016, 14:19
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

anda_skoa
20th February 2016, 14:58
Your value type needs to be QDirIterator*, i.e. pointers to QDirIterator objects.

Cheers,
_

robster
20th February 2016, 15:10
Great, thanks!