Can any body tell me, where QSetting::SetValue() stores data while we are running it in linux platform.
Thank you all.
Can any body tell me, where QSetting::SetValue() stores data while we are running it in linux platform.
Thank you all.
It's all listed in QSettings docs: http://doc.trolltech.com/4.3/qsettin...specific-notes
J-P Nurmi
phillip_Qt (3rd October 2007)
I think it's in your home directory, in a directory named after the application name.
Although I am not sure.
And SetValue only stores the value in the settings. Saving the settings makes the value appear in the file.
phillip_Qt (3rd October 2007)
I dont know about linux but in windows it saves in
HKEY_CURRENT_USER/Software/...
eg:
QSettings settings("KeyName", "subKeyname");
settings.setValue("DataName", value);
then it saves in
HKEY_CURRENT_USER/Software/keyName/subKeyname
Rajesh Kumar Singh
Bangalore, India.
Qt Search
Must Watch:
See how we can connect digital world objects to our day to day life….
phillip_Qt (3rd October 2007)
In general the config file for linux is located at
Qt Code:
~/.config/<Organization Name>/<Application Name>.confTo copy to clipboard, switch view to plain text mode
Where the file goes depends on how you set the application name / organization name in your program.
For instance:
Qt Code:
setOrganizationName ("MyOrganization"); setApplicationName ("MyApplication");To copy to clipboard, switch view to plain text mode
The config file would be in
Qt Code:
~/.config/MyOrganization/MyApplication.confTo copy to clipboard, switch view to plain text mode
Bookmarks