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:

Qt Code:
  1. QFileDialog dialog(this);
  2. dialog.setDirectory(QDir::homePath());
  3. dialog.setFileMode(QFileDialog::ExistingFile);
  4. dialog.setNameFilter(trUtf8("Splits (*.000 *.001)"));
  5. QStringList fileNames;
  6. if (dialog.exec())
  7. fileNames = dialog.selectedFiles();
To copy to clipboard, switch view to plain text mode 

What I have missed?

Thanks