What happens if instead of using the static member functions, you create a QFileDialog instance, do setDirectory() and then open the dialog?
What happens if instead of using the static member functions, you create a QFileDialog instance, do setDirectory() and then open the dialog?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I tryed, but in this case I loose the "System's Look 'n Feel" of the file dialog.
I would like to use a "MacOs like" fileDialog and set the defaut directory ...
Thanks
You can't set the starting directory on the Mac, because QFileDialog is using the native Mac dialog, which doesn't have this. Instead it uses the last directory seen. This is standard Mac behavior, and Mac users will expect it, so I wouldn't worry about it.
The image preview and info also comes from the native Mac dialog. Qt isn't doing this, OSX is doing it. To get this behavior on other platforms, you'll need to write your own file dialog, preview and info routines, etc.
hey (27th April 2007)
Bookmarks