[Qt-interest] QFileDialog signals

Andreas Pakulat apaku at gmx.de
Thu Sep 2 16:35:26 CEST 2010


On 02.09.10 16:08:54, Oliver.Knoll at comit.ch wrote:
> On 2010-09-02 Zeljko Zeljko wrote:
> > I know that it's implementable (at least for win32 dialogs and gtk2 dialogs) but
> 
> Are you SURE? Because on Windows you DON'T get the native dialog when you create a QFileDialog instance via c'tors - you get the Qt flavour of the file dialog, which off course emits those signals. But Qt can't have an influence on what the native file dialog "emits" and what not.

Thats not what the API docs say:
http://doc.trolltech.com/latest/qfiledialog.html#Option-enum

Note the comment for "DontUseNativeDialog", it mentions a subclass of
QFileDialog with Q_OBJECT macro, not the mere usage of the constructor.

A quick test confirms that just using

QFileDialog dlg(); dlg.exec(); shows the native dialog.

Andreas

-- 
You will be successful in love.



More information about the Qt-interest-old mailing list