PDA

View Full Version : Native QFileDialog



adonel
17th September 2008, 19:27
Hi,
I want to display a native file dialog, but i don't want to use the static functions of QFileDialog,
because i need to explicitly set the selected filter each time.

Is there an easy way to do that? By default, the Qt-styled file dialog is displayed!

Regards,
Panos

jpn
17th September 2008, 19:40
The only way to use native file dialogs is to use those static methods. What they actually do is that they create a native dialog (ie. not QFileDialog) by using platform-specific APIs where available. Plain QFileDialog is used elsewhere. QFileDialog is a cross-platform file dialog implementation. If you create a QFileDialog, there is no way to turn it as a native file dialog.