开发者

How to save a session in a Qt application?

开发者 https://www.devze.com 2023-03-22 04:52 出处:网络
I made this tool in Qt Creator where i have to enter some data in spin boxes and combo boxes. Each of these boxes have a default value when I open my tool. But I would like to implement a function to

I made this tool in Qt Creator where i have to enter some data in spin boxes and combo boxes. Each of these boxes have a default value when I open my tool. But I would like to implement a function to save the session of the application, i.e. if开发者_运维百科 i modify some values in the boxes i can save them and when I open my application again my modifications are there. And also when I am done with that data I can restore the defaults.

Any idea as to how to do this?


Use QSettings , it's usage is explained in the page

0

精彩评论

暂无评论...
验证码 换一张
取 消