PDA

View Full Version : QFileDialog::getOpenFileNames fail to load thousands of files...



jiapei100
30th October 2009, 02:12
Hi, all:

I'm trying to load 5,000 files once at a time.

I succeeded in loading around 1,500 files, but I failed to load 5,000 files once.

A dialog jumps out to say
XXXXX
file not found.

Please verify the correct file name was given.

It looks when QT tries to load multiple files within a folder, it uses a buffer, which is not unlimited. It won't let me load (in my case ) over 5,000 file names once.

Anybody met the same situation?
Please do give me a hand.

Best Regards
JIA

wysota
30th October 2009, 03:42
It's not Qt's fault. It's your system's fault. There is a system limit on the number of files that can be concurrently opened within a process.