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 ac
Since you're mentionning WinXP Pro SP2, I'll assume your files are on NTFS.
According to Qt's documentation :
Note that Qt does not by default check for permissions on NTFS file systems, as this may decrease the performance of file handling considerably. It is possible to force permission checking on NTFS by including the following code in your source:
extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;Permission checking is then turned on and off by incrementing and decrementing qt_ntfs_permission_lookup by 1.
qt_ntfs_permission_lookup++; // turn checking on qt_ntfs_permission_lookup--; // turn it off again