I'm working on an application that requires saving and loading of files.
To load files, I'm using QtGui.QFileDialog()
, and then calling file_browser.exec_()
. That gives this result:
To save a file, I'm calling file_browser.getSaveFileName()
which gives a completely different looking window:
Is there any way to make both of these windows look consistent?
The static functions like getSaveFileName
will always use a native dialog, unless you include DontUseNativeDialog
in the options argument.
On the other hand, the QFileDialog
constructor will always create an instance of Qt's built-in file dialog, no matter what options are set. You can change the file-mode to get the type of dialog you want.