HELLO GOOD MORNING, I HAVE AN APPLICATION WITH SEVERAL QWIDGETS AND MATPLOTLIB PLOTS AND I WOULD LIKE THAT THE VALUES AND STATES OF THE QWIDGETS AS WELL AS THE PLOTS COULD BE SAVED IN A FILE AND THEN LOAD THE DATA TO THE APPLICATION WHEN REQUIRED BY THE USER.
SHOULD I USE A jSON FILE , A DATABASE OR OTHER VARIANT TO SAVE AND LOAD THE DATA?
Normally I use YAML for Qt6/PySide6 applications, but JSON is fine as well. I would go with some text base format (easy to modify without opening application). It really does not matter that much, you can use INI, or TOML formats or just regular TXT file. Anything you find easiest for you (for develop, test) and deploy to users.
Regarding plot data it depends of amount of data, but it there are 100+ data points I would got for sperate file, but when you/or your users find more convenient to edit just one file go and use just one file for everything.