Select multiple files from QFileDialog
Hi,
I need to open more than one file from a QFileDialog, but with the following code I can open only one file at a time:
Code:
dialog.
setDirectory(QDir::homePath());
dialog.setNameFilter(trUtf8("Splits (*.000 *.001)"));
if (dialog.exec())
fileNames = dialog.selectedFiles();
What I have missed?
Thanks
Re: Select multiple files from QFileDialog
Re: Select multiple files from QFileDialog
Re: Select multiple files from QFileDialog
Quote:
Originally Posted by
Lykurg
Sorry Lykurg, but have you read my code? The line is still there.
Re: Select multiple files from QFileDialog
Quote:
Originally Posted by
jiveaxe
Sorry Lykurg, but have you read my code? The line is still there.
Can you spot the difference?
Re: Select multiple files from QFileDialog
brother, u have used QFileDialog::ExistingFile , while the correct one is QFileDialog::ExistingFiles .. :)
Re: Select multiple files from QFileDialog
You are right :o
Maybe I need a break :eek:
Thanks