[Qgis-developer] native file dialogs

Marco Hugentobler marco at hugis.net
Wed Oct 7 10:42:18 EDT 2009


Hi all (especially Tim as app maintainer)

Are there any objections against using native file dialogs where possible? If 
not, I'm going to change the file dialogs in several places (similar to the 
attached example patch which does the change for 'open OGR vector layer').

According to the Qt docs, QFileDialog::getOpenFileNames and similar open a 
native dialog on Windows and OSX. Whereas creating a QFileDialog and calling 
exec() creates a 'normal' QFileDialog.

Advantage of the native dialog is not only the look and feel but also options 
like network drives on windows.

Regards,
Marco 


-- 
Dr. Marco Hugentobler
HUGIS - GIS programming and consulting
Honrainweg 5
CH-8038 Zürich
marco at hugis.net
http://homepage.hispeed.ch/hugis/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filedialog.diff
Type: text/x-patch
Size: 1828 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20091007/39bca94c/filedialog.bin


More information about the Qgis-developer mailing list