My application has some configuration file and log file to store.

Q1:
In winxp, i want to save them to "C:/Documents and Settings/All Users/Application data/". I have no idea how to get this location using qt.

Q2:
And in win7, the file structure is different. I am not sure whether the directory should be "C:/Program data".

Q3:
I don't think there is any log data can be written to global location in Linux. Right?

Any one can help?