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?
Forum Updated to NodeBB v4.3 + New Features

Preference file?

Scheduled Pinned Locked Moved Solved General and Desktop
preferencefilesaving
3 Posts 2 Posters 952 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 3 Oct 2018, 21:43 last edited by GhostWolf 10 Mar 2018, 21:47
    #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 3 Oct 2018, 21:47
    0
    • G GhostWolf
      3 Oct 2018, 21:43

      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 3 Oct 2018, 21:47 last edited by
      #2

      @GhostWolf
      Take a look at the QSettings class here

      G 1 Reply Last reply 6 Oct 2018, 17:17
      4
      • K kenchan
        3 Oct 2018, 21:47

        @GhostWolf
        Take a look at the QSettings class here

        G Offline
        G Offline
        GhostWolf
        wrote on 6 Oct 2018, 17:17 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

        3/3

        6 Oct 2018, 17:17

        • Login

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