Reputation: 15628
Is there some kind of standard where to store the window size to when the application closes and where to load it from when the application starts? I'm wondering how I should store width&height parameters for a Qt
application I'm working on.
Upvotes: 0
Views: 252
Reputation: 3657
OS X has defaults system but for Linux I'm not aware of any persistent or dynamic store (e.g. scutil) like that.
Freedesktop.org has config-data-dir but not sure entirely its just specification of location or the format too.
Linux usually store its stuff in config files, so my only suggestion is to create your config file (XML, INI or JSON formatted) in ~/.config/appname/settings.xml
and write data to it while closing application and read data while opening.
So best to access configuration file is using QSettings API
Upvotes: 1