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. Preference file?
Qt 6.11 is out! See what's new in the release blog

Preference file?

Scheduled Pinned Locked Moved Solved General and Desktop
preferencefilesaving
3 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • G Offline
    G Offline
    GhostWolf
    wrote on last edited by GhostWolf
    #1

    Hello,

    Is there with qt and c++ an easy way to make/have a preference file just like on Android?
    Something like you only have to write preference.setSetting("name_of_setting" , "value of setting") to save it, and to retrieve the part you do preference.getSetting("name_of_setting") and it will return the value of that "setting".
    (Used setting as example, because it works on Android studio this way)
    My program runs on windows.

    K 1 Reply Last reply
    0
    • G GhostWolf

      Hello,

      Is there with qt and c++ an easy way to make/have a preference file just like on Android?
      Something like you only have to write preference.setSetting("name_of_setting" , "value of setting") to save it, and to retrieve the part you do preference.getSetting("name_of_setting") and it will return the value of that "setting".
      (Used setting as example, because it works on Android studio this way)
      My program runs on windows.

      K Offline
      K Offline
      kenchan
      wrote on last edited by
      #2

      @GhostWolf
      Take a look at the QSettings class here

      G 1 Reply Last reply
      4
      • K kenchan

        @GhostWolf
        Take a look at the QSettings class here

        G Offline
        G Offline
        GhostWolf
        wrote on last edited by
        #3

        @kenchan said in Preference file?:

        @GhostWolf
        Take a look at the QSettings class here

        Just had the chance to test. Thanx a lot

        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