[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();@