Trying to import qt creator project from previous version?
-
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!
-
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 ? -
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.
-
Gotcha. So should I just delete it? Is there another way to import the project?
-
Good to hear. That being said, I tried removing the .pro.user file, and re-importing, but get the same error.
-
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.
-
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.
-
I would get rid of (either delete or move out/zip them) all the snakehead.pro.* files (everything except 'snakehead.pro')
-
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.