How to select both files and folders using QFileDialog.

Printable View