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. what is the best way to make settings for my application?

what is the best way to make settings for my application?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 683 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by aha_1980
    #1

    I'm creating an application and i wanna to make settings form and if i stored my settings preferences in sqlite db it will use a lot if databases Query and if statements and of course it will slow my application just a little so is there another way to store settings and access it easily?

    1 Reply Last reply
    1
    • 6thC6 Offline
      6thC6 Offline
      6thC
      wrote on last edited by
      #2

      Would you be interested in file or registry? I use both:
      http://doc.qt.io/qt-5/qsettings.html
      http://doc.qt.io/qt-5/qml-qt-labs-settings-settings.html <= is lab / experimental may change - if they can it you can go back to QSettings for the same affect.

      ? 1 Reply Last reply
      3
      • 6thC6 6thC

        Would you be interested in file or registry? I use both:
        http://doc.qt.io/qt-5/qsettings.html
        http://doc.qt.io/qt-5/qml-qt-labs-settings-settings.html <= is lab / experimental may change - if they can it you can go back to QSettings for the same affect.

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @6thC I think registry is only for windows, the application will run on linux most

        jsulmJ 1 Reply Last reply
        0
        • ? A Former User

          @6thC I think registry is only for windows, the application will run on linux most

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @davidlabib Please read QSettings documentation: it does everything for you. On Windows it will use Registry on Linux config files.

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

          aha_1980A 1 Reply Last reply
          4
          • jsulmJ jsulm

            @davidlabib Please read QSettings documentation: it does everything for you. On Windows it will use Registry on Linux config files.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @jsulm

            ... and you can force it to use config files on every platform :)

            Qt has to stay free or it will die.

            1 Reply Last reply
            4

            • Login

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