PDA

View Full Version : QFileDialog::getSaveFileName Save Button



penny
7th April 2011, 11:05
I'm using QFileDialog::getSaveFileName to save a file in my application


QString fileName=QFileDialog::getSaveFileName(this,"Save As");

However, in the dialog box , the SAVE button is always enabled, even when no text is written in save as file name text box.
I want the save button to get enabled only after a file name i written in the text box.
How do i do that?

high_flyer
8th April 2011, 08:55
You will have to subclass and override getSaveFileName() with the functionality you want.