hi,
i just encountered a problem with QFileDialog. I use the static method "getExistingDirectory" to select a path, used in my software.
If i open the filedialog and click "Choose" without really choosing a dir, the return value is an empty string.
I would have been expected at least the path to the directory which has been showed, when opening the filedialog.
What if a user is happy with the path suggested at opening the dialog and just clicks "Choose" - i just get an empty string and do not know what has been selected.
I do not set a default path at opening the dialog yet. but doing so would not solve the problem.
if i use the dialog to browse to a specific dir and select it - i get the path as return value. if i open the dialog again - the previously selected dir is shown. if i click "Choose" now, the return value is an empty string again.
is this a bug? i do understand why "Cancel" returns an empty string, but "Choose" too?
to clarify my problem:
i am not able to investigate, if the user clicked "cancel" or if the user is satisfied with the path suggested at showing the filedialog and just clicked "choose"
in both cases i just get an empty string.
thnx, chris
Bookmarks