How to find QT version from project files?
-
Not an experienced QT user. I had created an application using QT 5.1 (I think) and it worked fine. However, my computer crashed recently and had to be wiped. Luckily I had my project files backed up but I am unsure of what version and compiler settings I had when I first made the project. I have re-installed different versions of QT but it still won't let me build the project.
How can I find the correct version to install from existing files?
-
Not an experienced QT user. I had created an application using QT 5.1 (I think) and it worked fine. However, my computer crashed recently and had to be wiped. Luckily I had my project files backed up but I am unsure of what version and compiler settings I had when I first made the project. I have re-installed different versions of QT but it still won't let me build the project.
How can I find the correct version to install from existing files?
-
@JoeCFD Windows. Right now I have QT Creator 8.0.1 installed. I added the project to QT but i'm running into issue while trying to select a compiler
-
@JoeCFD Windows. Right now I have QT Creator 8.0.1 installed. I added the project to QT but i'm running into issue while trying to select a compiler
@Avet Try to install Qt5.15.3 or Qt6.5 in your machine first. Then add it to QtCreator. QtCreator does not have the Qt kit.
download online installer
https://download.qt.io/official_releases/online_installers/qt-unified-windows-x64-online.exe
to install Qt5.15.3 or Qt6.5 in your machine. -
Not an experienced QT user. I had created an application using QT 5.1 (I think) and it worked fine. However, my computer crashed recently and had to be wiped. Luckily I had my project files backed up but I am unsure of what version and compiler settings I had when I first made the project. I have re-installed different versions of QT but it still won't let me build the project.
How can I find the correct version to install from existing files?
@Avet Ignore your project and install a tool chain and Qt that works with Qt 5.15.x on a simple Hello World program. Until this step is good there not much point continuing. @JoeCFD points the way here.
Most Qt 5.x programs will build with minimal change against Qt 5.15.x, so you should use this version if at all possible.
If your backup includes
blah.pro
and a matchingblah.pro.user
then you should rename (remove) theblah.pro.user
before opening theblah.pro
file in your new Qt Creator. The oldblah.pro.user
file contains Project Settings and related information generated by the earlier Qt Creator for the previous environment. You will essentially recreate this file in your new environment.You can read the
blah.pro.user
XML file to see what the old Project configurations were if you absolutely must. -
@Avet Ignore your project and install a tool chain and Qt that works with Qt 5.15.x on a simple Hello World program. Until this step is good there not much point continuing. @JoeCFD points the way here.
Most Qt 5.x programs will build with minimal change against Qt 5.15.x, so you should use this version if at all possible.
If your backup includes
blah.pro
and a matchingblah.pro.user
then you should rename (remove) theblah.pro.user
before opening theblah.pro
file in your new Qt Creator. The oldblah.pro.user
file contains Project Settings and related information generated by the earlier Qt Creator for the previous environment. You will essentially recreate this file in your new environment.You can read the
blah.pro.user
XML file to see what the old Project configurations were if you absolutely must.