Hi!
I had same problem today, i think it's realy bug ;-). I rather solve it by another way (not completly same, but functional):
Qt Code:
  1. QFileDialog dialog(this, tr("Save as ..."), editor->getFileName());
  2. dialog.setAcceptMode(QFileDialog::AcceptSave);
  3. dialog.setNameFilters(formats);
  4.  
  5. if (dialog.exec() != QDialog::Accepted) return false;
  6.  
  7. filter = dialog.selectedNameFilter();
  8. fn = dialog.selectedFiles()[0];
To copy to clipboard, switch view to plain text mode