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

    jsulmJ JonBJ J.HilkJ 3 Replies Last reply
    0
    • D duckrae

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

        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?

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #3

        @duckrae
        QSettings Class?

        1 Reply Last reply
        1
        • D duckrae

          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.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on 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

          • Login

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