Solved pin setup Vs Home
-
So i am making one app, in which it should first ask about pin setup while installing, and after that whenever i will open that app, it should display object of "home.qml" with proper pin entering, so what i am thinking that to take one variable and set it NULL. while first time when it is NULL it will ask for pin setup and after setting pin i will assign that variable some value and next time when it will not NULL it should display Object of home.qml.
Now my question is, i am taking variable which is not correct because i will not be able to get the updated Value even after updating it when i will open the app next time. Is there anything that i can save somewhere, so that i will get to know status that pin setup has done ??
-
I would look into using Qt.labs.settings. I have used it to remember states, but am unsure if I am using right so I cannot say more that.
-
@admkrk ok i will try this, thank you 😀😀
-
Pin needs to persisted. Every time you open the app, please read the values from store and assign to appropriate variable. It is pin to securely open the App. Storing in some local places may not be good idea. If you are working with android/iOS, check how to securely store these kind of values. It leads you to keystore or iOS KeyChain. Those are the best places.
-
@dheerendra okay sir 😀😀, Thank you.