Using a QFileDialog, I can allow the user to select one or more files, or to select one directory. Is there any way to allow selecting multiple directories?

I have found this FAQ on the qt-site, but the code there doesn't work (even after fixing the typos).

Any ideas?

thanks,
bepaald