Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. pin setup Vs Home

pin setup Vs Home

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 3 Posters 766 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Bhushan_SureB Offline
    Bhushan_SureB Offline
    Bhushan_Sure
    wrote on last edited by
    #1

    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 ??

    1 Reply Last reply
    0
    • A Offline
      A Offline
      admkrk
      wrote on last edited by
      #2

      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.

      Bhushan_SureB 1 Reply Last reply
      1
      • A admkrk

        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.

        Bhushan_SureB Offline
        Bhushan_SureB Offline
        Bhushan_Sure
        wrote on last edited by
        #3

        @admkrk ok i will try this, thank you 😀😀

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by dheerendra
          #4

          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
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          Bhushan_SureB 1 Reply Last reply
          1
          • dheerendraD dheerendra

            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.

            Bhushan_SureB Offline
            Bhushan_SureB Offline
            Bhushan_Sure
            wrote on last edited by
            #5

            @dheerendra okay sir 😀😀, Thank you.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved