jiveaxe
16th February 2009, 14:19
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:
QFileDialog dialog(this);
dialog.setDirectory(QDir::homePath());
dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setNameFilter(trUtf8("Splits (*.000 *.001)"));
QStringList fileNames;
if (dialog.exec())
fileNames = dialog.selectedFiles();
What I have missed?
Thanks
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:
QFileDialog dialog(this);
dialog.setDirectory(QDir::homePath());
dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setNameFilter(trUtf8("Splits (*.000 *.001)"));
QStringList fileNames;
if (dialog.exec())
fileNames = dialog.selectedFiles();
What I have missed?
Thanks