Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
GrahamLa last edited by
I need to have some sort of configuration file that can be edited by a user.
The configuration file will contain groupings of items for example
PrintButton: Visible: true, AsPng: true, ForcePdf: false, GrayScale: false
Has anyone got any ideas on how best to achieve this?
Pablo J. Rogina last edited by
ODБOï last edited by
This post is deleted!
Kent-Dorfman last edited by
You might also look at JSON. I've found it to be very flexible for storing configuration entries and groups of configuration profiles.
Daniel Williams last edited by
I've used the QSetttings class, too. It's very well done. You can instantiate an object QSettings qs("organization", "application") which basically groups the settings in a config file. On linux the file is stored at ~/.config/organization/appliction.conf. Then there are calls to read/write to the file. Try it, you'll like it ;)