So,
dialog.setFilter (QDir:: Files | QDir:: Readable | QDir:: Writable);
goes into the right direction.

I don't know the solution, but I would now try:
dialog.setFilter (QDir::AllDirs| QDir:: Readable | QDir:: Writable)