By default, Qt will use the native file dialog when one is available, so I am not sure why that is not happening in your case. You can look in the discussion of QFileDialog::Option and DontUseNativeDialog. You might have to derive a class from QFileDialog in order to get the behavior you want.

I am not a python expert, but the methof you are calling: getExistingDirectory() is a static member function in C++. You do not need to create an instance of the QFileDialog class in order to use it. I think the same is true in python, so your code probably should be:

Qt Code:
  1. self.workspace = QtGui.QFileDialog.getExistingDirectory(self, 'Select folder', options=QtGui.QFileDialog.ShowDirsOnly)
To copy to clipboard, switch view to plain text mode