[Qt-interest] Qt-4.5: QFileDialog & Options

J-P Nurmi jpnurmi at gmail.com
Wed Apr 22 17:30:53 CEST 2009


On Wed, Apr 22, 2009 at 6:10 PM, Zeljko <zeljko at holobit.net> wrote:
> Hi,
> How to create native QFileDialog under win32/mac , but without using static
> getFileName() etc .. ?
> I need non-static QFileDialog because of signals like filterSelected(),
> currentChanged() etc ...
> I've tried MyFileDialog->setOption(QFileDialog::DontUseNativeDialog, False)
> before calling to exec() but it doesn't help - dialog is non-native ?
> Anyone ?

Hi,

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.

--
J-P Nurmi



More information about the Qt-interest-old mailing list