PDA

View Full Version : How to change the attributes of a file



merry
24th March 2010, 09:04
I want to change the attributes of a file through Qt.
I want to change attributes such as file Type, file creater etc.

Their is a utility in SetFile which is used in mac for the same purpose ,but i want to do that through programming.

JohannesMunk
24th March 2010, 17:26
As far as I know Qt has no support for file attributes. You need to look for a platform specific solution for this.

I have no better idea where to start looking for that on a mac, than google, which revealed:

http://en.wikipedia.org/wiki/Extended_file_attributes#cite_note-0

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man2/setxattr.2.html

Johannes