QFileDialog hides the extension ,creates problem.



  • Hi,

    I am using QFileDialog::getSaveFileName to save a file.
    On the Dialog window, it shows the file name with out extension.
    The file name of QFileDialog is set using QFileInfo::fileName () , and the filter by QFileInfo::completeSuffix ().

    This works well with out any trouble if i dont change file name. if i change the file name on QFileDialog window , it saves with out extension!
    Could any one please suggest me where i went wrong or a way to do this better ? All i want to do is, to save a file with any name but the extension shouldn't be changed with user interaction.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.