In my Qt 5.5.1 program I have to change my config files permission from read only to read write... I have 2 questions:
How can I set this permission? I have tried:
QFile(path).setPermissions(QFile::ReadWrite);
But it throws this compiler error:C2664: 'bool QFile::setPermissions(const QString &,QFileDevice::Permissions)' : cannot convert argument 1 from 'QIODevice::OpenModeFlag' to 'QFileDevice::Permissions' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
How to get the permissions of a specific file?