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. Run time app settings recommendations
QtWS25 Last Chance

Run time app settings recommendations

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 627 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.
  • S Offline
    S Offline
    SysTech
    wrote on last edited by
    #1

    I'm wondering what people are mostly using these days with apps compiled using Qt to store/retrieve app settings at run time.

    Perhaps I'm not using the correct naming but things like if your app needs a com port you'd like to store that and then next time the app runs recall that com port # without having to ask the user again.

    Obviously there is the registry and while I can/have used it one thing I do not like about it is that it is not easy to move your "settings" that are working to another machine. I've always personally preferred a settings file of some kind.

    I am pretty sure Windows ini files are a thing of the past. So my question is considering all the stuff in Qt Core (which I'm still trying to grasp), what are people using to save/restore program settings?

    I see there is a json class, XML, stream readers/writers. All would work, just curious what people are doing?

    Thanks in advance. This app I'm working on will be constrained for the time being to Windows 32 bit. It will not need to cross-platform at this stage but perhaps a year or two down the road it might. Another reason I'm not convinced registry is a great thing.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on last edited by
      #2

      There is a qsettings class which gives you plenty of choices for this particular case

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SysTech
        wrote on last edited by
        #3

        Outstanding... I'm only to about Q<m> so I guess I haven't gotten that far yet.

        Thanks for the reply.

        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