Hi guys .. Well I'm using the following code to get the filename for a file that needs to be stored ..
QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"),"/home/user/MyDocs/",tr("JPG files (*.jpg);;BMP files (*.bmp);;PNG files (*.png)"));
I'm providing the user with a number of options regarding the file format in which the file is to be saved .. however, the returned QString only gives me the prefix filename the user chose, not the suffix .. so I dont know which file format the user chose .. How can I detect the file format the user chose ?