if `R_OK` only checks for read permissions then this should be a good replacement. 

`return  QFileInfo(canonicalPath).permision(QFile::ReadUser);`