Issue with QFileDialog::getSaveFileName
-
Hi,
I'm currently trying to save some data to a file.
I just want the user to click "Export" and then spawn a file dialog.
Obviously the file usually does not exist yet in such cases.So I looked at QFileDialog::getSaveFileName, which intuitively should return a file path with the selected file, or if it didn't exist, it should return the path using the specified name and file ending.
The documentation also states that:
"This is a convenience static function that will return a file name selected by the user. The file does not have to exist."But no matter what I do in the dialog, I always get an empty path.
Am I doing something wrong? Is the function just broken? Is the documentation inaccurate?
Regards,
Megamouse -
Hi,
Which version of Qt ?
On which OS ?
Can you provide a minimal compilable example reproduces your issue ?