[SOLVED] loading a variable from state.



  • how to load the state of a variable? I tried the following code. it is working but not as expected.

    @tt = settings.value("variable").toBool();@

    if the code above is correct then i guess there is something wrong in my program code.



  • I solved it with the following code. I needed the .toInt() at the end of the code.

    @tt = settings.value("variable").toInt();@


Log in to reply
 

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