View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#3
As MartinK explained, you can use PyOtherSide to do the magic. If you prefer to do so in C++, you could save the notes together with the other app settings using QSettings. Since you can convert between JSON and strings at your will, any complicated structure can be saved / restored from settings.

For QSettings, you probably would have to write a small wrapper that would allow to call it from QML (Q_INVOKABLE methods).

But if you use Python, its better to go with MartinK solution. Seems to be simple enough and flexible as well - you'll be able to save the notes later where you want them to be saved.
 

The Following 2 Users Say Thank You to rinigus For This Useful Post: