tbscope, I guess filter impacts only the display of the files by their extensions (this is according to the QFileDialog's documentation).
qt_user, instead you can do something like this:
do {
} while (isFilePathAcceptable(filePath));
do {
QString filePath = QFileDialog::getSaveFileName(parent, caption, dir, filter);
} while (isFilePathAcceptable(filePath));
To copy to clipboard, switch view to plain text mode
where isFilePathAcceptable is your function that implements the criteria for checking whether the file path is valid. Saying "current directory" may imply different paths, so only know what a proper check should be done.
Bookmarks