[Qt-interest] FileDialog in the certain folder

Ender EREL erelender at yahoo.com
Tue Apr 7 11:30:40 CEST 2009


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.

Ender EREL



More information about the Qt-interest-old mailing list