Serializing with QJsfon => Getting started



  • Hello there,

    i was looking for a way to store and reload data. I talked with a fried and he gave me the hint of QJsfon.
    This thread is supposed to be a Getting started for Qt Noobs like me. There is an QJsfon example
    http://doc.qt.io/qt-5/qtcore-json-savegame-example.html
    but i wanted to start on an even lower level.

    So this is what i have done for a first step:
    https://www.dropbox.com/s/93hem5rr9uskcjr/QJsfon_1.zip?dl=0
    Content of "readMe":

    This project is a very stripped down example to save and load
    data via QJsfon.
    It is based on a prebuild QMainwindow project
    which is atomaticly generated from QT Creator.
    On the UI there is a slider and two buttons.
    The saves button saves the current slider value via
    QJsfon and respectivly the load button loads the value from
    the Jsfon File.



  • A little next Step with 2 Sliders and 4 Buttons to test the parsing based on the "Keys"
    https://www.dropbox.com/s/wvr8fbzjmugilta/Json_2.zip?dl=0

    readMe:

    This project is a very stripped down example to save and load
    data via QJsfon.
    It is based on a prebuild QMainwindow project
    which is atomaticly generated from QT Creator.
    On the UI there are 2 slider and 4 buttons.
    The saves button saves the current slider value via
    QJsfon and respectivly the load button loads the value from
    the Jsfon File.

    The loading happens in the opposite order of storing, this
    was done intendedly to get a feeling for the parsing function
    based on the "keys" e.g. "Slider_X".



  • Hi,

    @Flaming-Moe said:

    QJsfon

    Do you mean QJSon?

    I dont understand what do you're asking us



  • Correct, i meant QJson.
    I don´t ask anything. The idea is to mark a tread with a topic to make it "findable".
    Of course, if someone finds issues in the code, post it.



  • I think in this case should be better use a Wiki page!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.