Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to save boolean value even if program is close?
Forum Updated to NodeBB v4.3 + New Features

How to save boolean value even if program is close?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 222 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.
  • D Offline
    D Offline
    duckrae
    wrote on 27 Oct 2021, 06:44 last edited by
    #1

    Hi. I want to ask something.
    I want to save boolean value even if program is close.
    like sharedpreference in Android.
    Is there any function to implement this content?

    J J J 3 Replies Last reply 27 Oct 2021, 06:47
    0
    • D duckrae
      27 Oct 2021, 06:44

      Hi. I want to ask something.
      I want to save boolean value even if program is close.
      like sharedpreference in Android.
      Is there any function to implement this content?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 27 Oct 2021, 06:47 last edited by
      #2

      @duckrae It is not really clear what you want to do.
      Is this boolean a setting? If so who is going to use it?
      It sounds like your platform is Android, is this correct?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D duckrae
        27 Oct 2021, 06:44

        Hi. I want to ask something.
        I want to save boolean value even if program is close.
        like sharedpreference in Android.
        Is there any function to implement this content?

        J Offline
        J Offline
        JonB
        wrote on 27 Oct 2021, 06:48 last edited by
        #3

        @duckrae
        QSettings Class?

        1 Reply Last reply
        1
        • D duckrae
          27 Oct 2021, 06:44

          Hi. I want to ask something.
          I want to save boolean value even if program is close.
          like sharedpreference in Android.
          Is there any function to implement this content?

          J Online
          J Online
          J.Hilk
          Moderators
          wrote on 27 Oct 2021, 06:49 last edited by
          #4

          @duckrae since 1956 Read-Write-Memory is a thing. Big shout out to IBM!

          So what exactly do you want to do, what platform what os, what condition etc.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          1

          1/4

          27 Oct 2021, 06:44

          • Login

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