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

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Wed Apr 22 18:48:30 CEST 2009


Alexis Ménard wrote on Wednesday, April 22, 2009 6:24 PM:

>> ...
>> The only way to use native file dialogs is to use those static
>> methods. ...
>
> This is partially false :D. Since 4.5 on the mac if you use the class
> QFileDialog (not static functions), it will display the native Mac
> dialog unless you give the flag QFileDialog::DontUseNativeDialog.
> ... Of course you have no control on the native one.

So how does that work on the Mac then? With "off course you don't have any control" do you mean that you won't get e.g. the signals, such as the requested filterSelected() signal - unless you pass along the QFileDialog::DontUseNativeDialog when creating a new instance of QFileDialog on the Mac?

Or are you (on the Mac) somehow only "partially" using native widget elements when creating a QFileDialog (and hence still keeping control when they are modified somehow), whereas the static methods will create the "full blown default file dialog" of the Mac system (where you loose control, such as receiving signals when the filter has been changed)?


Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list