Maybe check the directory exists and is readable with QDir here?