PDA

View Full Version : Native QFileDialog



bgougeon
5th June 2009, 21:26
Hi,

I'm trying to use xp native file dialog but I didn't find anything on it. I guess I'll have to use the functions in qfiledialog_win.cpp but how?

That would be great if someone could explain me the proper way to use native dialogs.

Thanks in advance,
Boris

Lykurg
5th June 2009, 22:09
I'm trying to use xp native file dialog but I didn't find anything on it. I guess I'll have to use the functions in qfiledialog_win.cpp but how?

The docs are telling you, everything you want to know (QFileDialog):

The easiest way to create a QFileDialog is to use the static functions. On Windows, these static functions will call the native Windows file dialog, and on Mac OS X these static function will call the native Mac OS X file dialog

If you don't want to use native dialog you have to explicit suppress them with QFileDialog::DontUseNativeDialog.

bgougeon
5th June 2009, 23:28
Thanks for your answer, but QFileDialog() apparently uses Native Dialogs on Xp and Mac as default, or It doesn't look like it does, since the UI and comportment look different.
I checked and it does open a native file dialog.

So what I'm looking for is to have the native xp FileDialog (exact same look). Do you have any idea if it's possible to do that?

Thanks for your answer,
Boris

bgougeon
6th June 2009, 01:33
Ok I think I did find out that what I was searching for was not possible. I forgot to notice that what I wanted was for repertories. I checked how VLC did handle that and actually VLC uses the simple Windows file browser, with just repertories.