[Qt-interest] Is it possible to use 'double dot' file extensions in QFileDialog?

kent williams nkwmailinglists at gmail.com
Thu Aug 26 19:02:29 CEST 2010


I want to use QFileDialog to open (among other things) NIfTI medical
image files.  There are two possible filename extentions for NIfTI:

*.nii -- uncompressed NIfTI file
*.nii.gz -- compressed (gzipped) NIfTI file

If I use QFileDialog::getSaveFileName it seems to confuses the dialog
box quite a lot.   I'm doing this:


QString fileName =
    QFileDialog::getSaveFileName(this, tr("Save File"), QDir::currentPath(),
				   tr("NIfTI File (*.nii);;"
  			      "Compressed NIfTI File (*.nii.gz);;"
				      "Analyze Files (*.hdr);;"
				      "Dicom Files (*.dcm)") );



More information about the Qt-interest-old mailing list