http://qt-project.org/doc/qt-4.8/qfileinfo.html#permission

I don't know what the R_OK checks for explicitly but it would be good if this can be exchanged with QFileInfo::permission