Not entirely true. When you copy files cross device under windows (maybe linux and mac, not sure) the file time will be preserved.In that case you can't do it with Qt. Why would you want to do that anyway? The file is modified when it is written to the device, not when its original was written to some other device.
I'm pretty sure it can be done using standard c, read a file's attributes into a 'struct stat' then change the member you're interested in then apply them back somehow.Why not store the value elsewhere? Or use platform dependent code as already suggested.
I did it years ago but can't remember how atm.
Bookmarks