PDA

View Full Version : QFileDialog



merry
15th December 2007, 06:01
Hi all

Working on Qt4.2 on intel MAC machine.

I had used
QFileDialog::getSaveFileName() for saving the files, but if the filename already exists then it wont show the message that

"This file with this name already exixts do you wish to replace it with the existing one."

It simply save the file with the name that is already existing and itself replace that file.

Actually I want , that the message should display If the filename already exists.

What to do?

Regards :)
Merry

jacek
15th December 2007, 13:41
It looks like a bug. Try the newest Qt version to see if it still doesn't work.

For a temporary workaround you can use QFileInfo::exists() and QMessageBox::question().