Well, good idea. I can DISABLE the overwrite query popup that is automatically implemented by QFileDialog::getSaveFileName(). That can be done with the optional QFileDialog::Options parameter, bitmask value: QFileDialog:: DontConfirmOverwrite, and checking the existance of the selected file with QFileInfo, and showing my own confirmation dialog box if the file does exist. I guess I'll do that.
But this REALLY IS a BUG (a design oversight, I think) in the Confirm-Overwrite feature of QFileDialog:: getSaveFileName(), -- enabled by default. It's a pretty bad bug because the file WILL be overwritten by the client code because -- if this is true -- the client code has no way of being informed of the user's choice to ABORT the write operation. Is this true?
Bookmarks