Quote Originally Posted by wysota View Post
Did you try like this?
Qt Code:
  1. if(file.setPermissions(QFile::ReadOwner|QFile::WriteOwner)){
  2. qDebug() << "Permissions changed";
  3. } else {
  4. qDebug() << "Couldn't change permissions";
  5. }
To copy to clipboard, switch view to plain text mode 
Yes, I tried but I did witht the file open and didn't work (setPermissions was returning true but the actual permissions didn't change).
I've just tried not opening the file and it woks perfectly.
Thanks!