[Qt-interest] Opening multiple directories

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Thu Apr 16 11:14:51 CEST 2009


Santhosh Y wrote on Thursday, April 16, 2009 9:06 AM:

> ...
> I tried to use the "QFileDialog::getExistingDirectory()"  , but this
> enables to select a single directory but not multiple directories. 

And thanks for that: after all the method is called getExistingDirectoRY (else it would be called getExistingDirectorIES()). :)
 
> I want to know if there is any way to select the multiple directories

I don't think Qt offers such an API. In fact I have never encountered such a "Select Directory" dialog in any application/OS which would offer me the possibility to select multiple directories.

While I certainly could think of some scenarios where this could be useful, what is your actual use case for this? Maybe there is a better way to let the user select multiple directories (such as a proper tree view, just like the File Explorer in Windows)?

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



More information about the Qt-interest-old mailing list