How to disable overwrite confirmation?

1.6k views Asked by At

I have following code QFiledialog fd; QString dirpath = fd.getSaveFileName(this);

Here I don't want QFiledialog to prompt for over write confirmation when I select file to get it's path

Thanks in advance.

1

There are 1 answers

2
Zlatomir On BEST ANSWER

Pass QFileDialog::DontConfirmOverwrite as parameter, look at the documentation for getSaveFileName function here.