QFileDialog: Set starting directory?
-
Hi. I wonder, if there is any way how I can set the starting directory of a QFileDialog. So, supposing you've got a "Save" function. You click on your button with this function and a QFileDialog opens. You'll be automatically redirected to the application path as starting directory. Is there a way how to change this directory?
-
come on ... at least look once at the "docs":http://qt-project.org/doc/qt-4.8/qfiledialog.html#getSaveFileName!
Even the constructor has a parameter for it if you use the non-native version of the dialog... -
I've found .setDirectory() in the docs, but I've overlooked this, sorry!