I'm guessing with the logging you are not doing the same comparison. xdg.permissions() and wanted don't have the same number of digits. I suggest looking at http://qt-project.org/doc/qt-4.8/qfile.html and reading the code for QFile.permissions() to make sure your logging is doing exactly the same thing.
I'm guessing with the logging you are not doing the same comparison. xdg.permissions() and wanted don't have the same number of digits. I suggest looking at http:// qt-project. org/doc/ qt-4.8/ qfile.html and reading the code for QFile.permissions() to make sure your logging is doing exactly the same thing.