How can I know which filter a user selected in a QFileDialog ?
Answer:
If you are using a QFileDialog instance then simply call selectedFilter() on the QFileDialog and it will tell you what the selected filter was. If you are using the static dialog implementation then pass in a QString pointer for the selectedFilter
parameter and then when the function returns you can get the selected filter from that. See:
http://doc.trolltech.com/4.3/qfiledialog.html#getSaveFileName
http://doc.trolltech.com/4.3/qfiledialog.html#selectedFilter
for more information.

