Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QSettings location for plugins
QtWS25 Last Chance

QSettings location for plugins

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 2 Posters 2.9k 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.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #1

    Where are all QSettings for qt creator plugins stored under Windows?
    Are they in the registry?

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      All settings are stored in the filesystem under %APPDATA%/Roaming/QtProject (not 100% sure about the part between %APPDATA% and QtProject:).

      Plugins tend to have few settings and those are rolled into the normal .ini file. We also use a SQLite DB for binary blobs (geometries, etc.) which are not editable anyway (and take much longer to load when they need to be deserialized from the QSettings format) and a couple of XML files for kits (qtcreator/profiles.xml), compilers (qtcreator/toolchains.xml), devices (qtcreator/devices.xml) and Qt versions (qtcreator/qtversions.xml).

      If you have those .xml files directly in QtProject folder: Then you are using Qt Creator prior to 2.5. Our newest version one moved them to qtcreator/ and updated them a bit in that process. The old files are still used when loading projects that were never opened with Qt Creator 2.6 before to import old settings, so keep them around if you have projects like that.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        Thanks Tobias

        [quote author="Tobias Hunger" date="1356249456"]All settings are stored in the filesystem under %APPDATA%/Roaming/QtProject (not 100% sure about the part between %APPDATA% and QtProject:).
        [/quote]

        That path is 100% correct for my setup, which should be standard setup.

        I am changing a plugin, but could not find the location of information stored by QSettings. As I could verify it does use QtCreator.ini as well. Better change this since I want to store much more information.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Saving into the normal .ini file is usually fine. Why do you want an extra file to store your settings in?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            The amount of data is the reason. Probably more a question of perspective but I do not want to mess around so much with the standard ini-file. I am thinking of a primitive translator of abbreviations.

            Probably you know by heart I was trying to find the block selection of qt creator. I would be interested to find and edit the comment block prior to a location in a file. When trying to find myself, I got completely lost.

            A couple of examples might be helpful for the plugin documentation. However, I know that this takes a significant amount of effort which is a bit questionable.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              What kind of abbrevations? Something like snippets (see Tools>Options>Text Editor>Snippets, not 100% sure about the category, don't have creator handy right now, it is xmas after all;)?

              1 Reply Last reply
              0
              • K Offline
                K Offline
                koahnig
                wrote on last edited by
                #7

                Enjoy xmas. Let's continue after the holidays. ;)

                Vote the answer(s) that helped you to solve your issue(s)

                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