As far as I know you can't alter file attributes using Qt API, you can only retrieve them.