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. Trying to import qt creator project from previous version?
Forum Update on Monday, May 27th 2025

Trying to import qt creator project from previous version?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
14 Posts 3 Posters 5.6k 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.
  • M Offline
    M Offline
    mysteriousman
    wrote on last edited by
    #1

    Hello, I have a qt creator project that was made using qt creator version 4. Now I am trying to work on it again, but have qt creator 5 (the latest?) installed via apt on ubuntu 20.04.

    When trying to import the project ".pro" file to work on the project in qt creator, I get the following error:

    No valid settings file could be found.
    All settings files found in directory ".<my path>" were unsuitable for the current version of Qt Creator, for instance because they were written by an incompatible version of Qt Creator, or because a different settings path was used.

    Is it possible to import old qt projects into new versions?

    This seems like something I would expect going backwards in version (importing a newer one in older software), but it seems like there is probably a way to fix it going forward in versions. Any ideas?

    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Usually the .pro.user file contains your project specific stuff from a Qt Creator point of view.

      From memory, when possible, it should be automatically converted if necessary.

      Do you have such a file ?
      Beside the major version change, did you modify anything else in Qt Creator ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mchinand
        wrote on last edited by
        #3

        Is this a difference in QtCreator version or a difference in Qt version? What version of Qt are you using?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mysteriousman
          wrote on last edited by
          #4

          I have both a .pro and .pro.user file, with the same prefix, in the same directory. The path on my computer to these files is different than the path on the original computer. Not sure if this matters.

          I don't think I changed anything else in qt creator, but am not 100% certain. This project was written by a coworker and I am now trying to recompile/develop on top of what they did, but they no longer work here. I have their repository, file dump, and some incomplete docomentation to go on.

          I am using Qt version 5.12.8. I am not certain which version of qt the .pro file was created with, but I think it was qt version 5 with qt creator version 4. If there is some way to check I would be happy to provide this information as well.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mchinand
            wrote on last edited by
            #5

            I don't think the .pro.user file is very portable from one computer to another. A new one will be created when you open your project in QtCreator. I never include the .pro.user file in a version control repository.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mysteriousman
              wrote on last edited by
              #6

              Gotcha. So should I just delete it? Is there another way to import the project?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mchinand
                wrote on last edited by
                #7

                The .pro file has all the info about the project that you really need.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mysteriousman
                  wrote on last edited by
                  #8

                  Good to hear. That being said, I tried removing the .pro.user file, and re-importing, but get the same error.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mchinand
                    wrote on last edited by
                    #9

                    Can you post all of the error output text?

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mysteriousman
                      wrote on last edited by
                      #10

                      Full error: "No valid settings file could be found.

                      All settings files found in directory ".<my path>" were unsuitable for the current version of Qt Creator, for instance because they were written by an incompatible version of Qt Creator, or because a different settings path was used."

                      <my path> is just a specific path on my system, that corresponds to the directory that contains the .pro file that I tried to import, and used to contain the .pro.user file we are talking about.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mchinand
                        wrote on last edited by
                        #11

                        What are all of the non-source (.h, .cpp) files in that directory?

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mysteriousman
                          wrote on last edited by
                          #12

                          31516e2a-5157-40c8-a141-6b0451fb2afa-image.png They're almost all not cpp files, and there's a ton of them. I'm not sure what's important, so here's a screenshot. The jpg's and png's are just for the GUI itself, so don't worry about them.

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mchinand
                            wrote on last edited by mchinand
                            #13

                            I would get rid of (either delete or move out/zip them) all the snakehead.pro.* files (everything except 'snakehead.pro')

                            1 Reply Last reply
                            2
                            • M Offline
                              M Offline
                              mysteriousman
                              wrote on last edited by
                              #14

                              This worked, thanks! I guess it was trying (and failing) to import both the .pro.user file, and the backup ones. Removing them all fixed the import.

                              1 Reply Last reply
                              1

                              • Login

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