[Qt-interest] FileDialog in the certain folder

Alexis Ménard alexis.menard at trolltech.com
Tue Apr 7 12:54:55 CEST 2009


On Tuesday 07 April 2009 11:30:40 Ender EREL wrote:
> You can connect a slot to the
> void directoryEntered ( const QString & directory )
> signal of QFileFialog, and check if the directory is allowed. If not,
> you can set the directory to any directory you want by using
> setDirectory().
>
> This may solve your problem with minimum effort but it may create some
> undesired visual results, overall i think it is worth giving a try
> before looking for other solutions.
>

Or just apply a QSortFilterProxyModel that filter all the node and never 
display the ones you don't want.

> Ender EREL
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

-- 

Alexis Ménard
Software Engineer, Widgets Team 1
Qt Software, Nokia Norge AS, Sandakerveien 116, 0484 Oslo, Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090407/6a42fdaa/attachment.html 


More information about the Qt-interest-old mailing list