Qt setPermissions not setting permisions
问题 I'm not sure why but my code bellow does not set permissions for a file. Not sure what could be wrong with the code. SYSTEM: Windows XP Pro SP2. Running in Admin account as admin. Newest Qt framework and files. //Get file permissions of ref file. QFile::Permissions qpPerm1; qpPerm1 = QFile::permissions("E:/dir1/dir2/File1.txt"); //Set file permissions of a file. bool isOK=0; isOK = QFile::setPermissions("E:/dir4/dir5/file2.txt",qpPerm1); qout << "Perms set? " << isOK << endl; Return value is