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. settings not being saved between sessions
Forum Update on Monday, May 27th 2025

settings not being saved between sessions

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 3 Posters 3.3k 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.
  • R Offline
    R Offline
    Rlkcpo
    wrote on last edited by
    #1

    Hey everyone,

    I am new here so please forgive me if I am posting this in the wrong area. I did a couple searches but I haven't found an answer to the issue I am having:

    After installing Qt and setting up the IDE I can close Qt creator and when I reopen it, all my settings are gone, and Qt needs to be pointed to the .pro file. The .user file seems to be saved in my projects folder, but the projects directory seems to never be saved.

    Any help would be appreciated. Thanks!

    raven-worxR 1 Reply Last reply
    0
    • R Rlkcpo

      Hey everyone,

      I am new here so please forgive me if I am posting this in the wrong area. I did a couple searches but I haven't found an answer to the issue I am having:

      After installing Qt and setting up the IDE I can close Qt creator and when I reopen it, all my settings are gone, and Qt needs to be pointed to the .pro file. The .user file seems to be saved in my projects folder, but the projects directory seems to never be saved.

      Any help would be appreciated. Thanks!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Rlkcpo
      The opened projects, etc. are stored in so called Sessions (see this) in QtCreator.
      In the welcome screen there is a section "Sessions" which always lets you open the last used session.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • R Offline
        R Offline
        Rlkcpo
        wrote on last edited by
        #3

        I appreciate the quick response. However that doesn't really answer my question.

        I can create a session and call it up from the welcome screen just fine. The problem that I am having is that the project (along with my .user settings) are not being loaded. My "Recent Projects" area on the welcome screen is always empty. The "Sessions" area saves my sessions, but when selected does not bring up the associated project/settings that go along with it.

        raven-worxR 1 Reply Last reply
        0
        • R Rlkcpo

          I appreciate the quick response. However that doesn't really answer my question.

          I can create a session and call it up from the welcome screen just fine. The problem that I am having is that the project (along with my .user settings) are not being loaded. My "Recent Projects" area on the welcome screen is always empty. The "Sessions" area saves my sessions, but when selected does not bring up the associated project/settings that go along with it.

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Rlkcpo
          What QtCreator version?
          What OS?
          Write access issue?

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rlkcpo
            wrote on last edited by
            #5

            I should have posted this to begin with:

            Qt Creator 4.5.0
            Ubuntu 16.04

            I don't think its a write access issue the files all show writable. The problem just started this morning. I installed Qt 2 days ago and for the last two days it seemed just fine. Worked beautifully. However this morning I stared Qt and had to point it to my project.

            I do get an error message that may help:

            "No .user settings file created by this instance of Qt Creator was found. Did you work with this project on another machine or using a different settings path before?" - No

            "Do you still want to load the settings file '<path to my .user file>'?" - Yes

            Though selecting "Yes" doesn't seem to actually load my settings file (or the correct Project for that matter).

            raven-worxR 1 Reply Last reply
            0
            • R Rlkcpo

              I should have posted this to begin with:

              Qt Creator 4.5.0
              Ubuntu 16.04

              I don't think its a write access issue the files all show writable. The problem just started this morning. I installed Qt 2 days ago and for the last two days it seemed just fine. Worked beautifully. However this morning I stared Qt and had to point it to my project.

              I do get an error message that may help:

              "No .user settings file created by this instance of Qt Creator was found. Did you work with this project on another machine or using a different settings path before?" - No

              "Do you still want to load the settings file '<path to my .user file>'?" - Yes

              Though selecting "Yes" doesn't seem to actually load my settings file (or the correct Project for that matter).

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              @Rlkcpo
              so did you upgrade QtCreator then?

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Rlkcpo
                wrote on last edited by
                #7

                Upgrade it? No its this not the latest version? I used the website and the online installer. Is there an updated version of Qt Creator beyond 4.5.0?

                DiracsbracketD raven-worxR 2 Replies Last reply
                0
                • R Rlkcpo

                  Upgrade it? No its this not the latest version? I used the website and the online installer. Is there an updated version of Qt Creator beyond 4.5.0?

                  DiracsbracketD Offline
                  DiracsbracketD Offline
                  Diracsbracket
                  wrote on last edited by Diracsbracket
                  #8

                  @Rlkcpo
                  Latest version is 5.10. I myself use the latest release of version 5.9, i.e. 5.9.4

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Rlkcpo
                    wrote on last edited by
                    #9

                    Correct the latest version of the Qt framework is 5.10(which I have)- Im talking about Qt Creator (the IDE)

                    1 Reply Last reply
                    0
                    • R Rlkcpo

                      Upgrade it? No its this not the latest version? I used the website and the online installer. Is there an updated version of Qt Creator beyond 4.5.0?

                      raven-worxR Offline
                      raven-worxR Offline
                      raven-worx
                      Moderators
                      wrote on last edited by raven-worx
                      #10

                      @Rlkcpo said in settings not being saved between sessions:

                      Is there an updated version of Qt Creator beyond 4.5.0?

                      no, 4.5.0 is the latest.
                      I was rather asking if you upgraded to version 4.5.0 and created your projects with a different version of QtCreator.

                      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                      If you have a question please use the forum so others can benefit from the solution in the future

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Rlkcpo
                        wrote on last edited by
                        #11

                        No I am evaluating Qt right now so everything I have is new as of 2 days ago. No other versions of Qt are installed or have been installed on this machine.

                        raven-worxR 1 Reply Last reply
                        0
                        • R Rlkcpo

                          No I am evaluating Qt right now so everything I have is new as of 2 days ago. No other versions of Qt are installed or have been installed on this machine.

                          raven-worxR Offline
                          raven-worxR Offline
                          raven-worx
                          Moderators
                          wrote on last edited by
                          #12

                          @Rlkcpo
                          anyways, the error No .user settings file created by this instance of Qt Creator was found.
                          suggests differently.

                          What are the contents of the first few lines of your project's .pro.user file.

                          The .pro.user file should begin with something like:

                          <?xml version="1.0" encoding="UTF-8"?>
                          <!DOCTYPE QtCreatorProject>
                          <!-- Written by QtCreator 4.5.0, 2018-01-26T09:52:02. -->
                          <qtcreator>
                           <data>
                            <variable>EnvironmentId</variable>
                            <value type="QByteArray">{3984cf51-.....-4598d1289b66}</value>
                           </data>
                          ....
                          

                          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                          If you have a question please use the forum so others can benefit from the solution in the future

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            Rlkcpo
                            wrote on last edited by
                            #13

                            <?xml version="1.0" encoding="UTF-8"?>
                            <!DOCTYPE QtCreatorProject>
                            <!-- Written by QtCreator 4.5.0, 2018-01-26T09:21:55. -->
                            <qtcreator>
                            <data>
                            <variable>EnvironmentId</variable>
                            <value type="QByteArray">{316471a3-f154-424b-981f-dcbbc2d6adf8}</value>
                            </data>
                            <data>
                            <variable>ProjectExplorer.Project.ActiveTarget</variable>
                            <value type="int">0</value>
                            </data>
                            <data>
                            <variable>ProjectExplorer.Project.EditorSettings</variable>
                            <valuemap type="QVariantMap">
                            <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
                            <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
                            <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
                            <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
                            <value type="QString" key="language">Cpp</value>
                            <valuemap type="QVariantMap" key="value">
                            <value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
                            </valuemap>
                            </valuemap>

                            1 Reply Last reply
                            0
                            • R Offline
                              R Offline
                              Rlkcpo
                              wrote on last edited by
                              #14

                              Update*

                              I have uninstalled, reinstalled, and am still seeing the same problems. Does the maintenance tool not completely remove the program?

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                Rlkcpo
                                wrote on last edited by
                                #15

                                So it turns out the problem files were located in the ~/.config directory. I deleted everything Qt related in that directory, did a clean reinstall and the problem vanished.

                                1 Reply Last reply
                                2

                                • Login

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