Search code examples
qtinstallationversion

How to add more Qt versions after installation?


I have installed the opensource Qt 5.5.0 with the following settings:

Kits:

Desktop Qt 5.4.2 MSVC2013 64bit2
Desktop Qt 5.5.0 MSVC2013 64bit

Qt Versions:

Qt 5.4.2 MSVC2013 64bit2 and some qmake.exe path
Qt 5.5.0 MSVC2013 64bit and some qmake.exe path

Compilers:

Microsoft Visual C++ Compiler 12.0(x86)
Microsoft Visual C++ Compiler 12.0(amd64)
Microsoft Visual C++ Compiler 12.0(x86_amd64)
Microsoft Visual C++ Compiler 12.0(x86_arm)
Microsoft Visual C++ Compiler 12.0(amd64_arm)
Microsoft Visual C++ Compiler 9.0(x86)
Microsoft Visual C++ Compiler 9.0(x86_amd64)
Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
Windows Mobile 5.0 Smartphone SDK (ARMV4I)

But now I want to add 32 bit Qt versions to be able to combine them with x86 compilers in a 32 bit kit like Lucacox mentioned here without the necessity to preinstall Qt from the setup again.

I have tried from tools->Build & Run->Qt Versions->Add but don't know if .qmake is enough and where to find it (based on the answer of Lucacox above I think it is not - maybe at least downloading the version from somewhere is needed).

The installer does not allow adding Qt Versions in the same installation:

Qt installation error: "The folder you selected already exists and contains an installation. Choose a different target for installation."


Solution

  • You can easily accomplish adding specific standard Qt builds with Qt Maintenance Tool. As long as you are on Windows find one by typing: "Windows+S Qt Maint...", or by finding QT in the Add/Remove Programs Control Panel and clicking "Change".

    Selecting Qt prebuilt framework for download

    Mind that you can use one Qt Creator with different prebuilt target Qt. I do that for both 32 and 64 bit without replacing the tool itself. It is all about choosing proper Compiler Kit and choosing/adding Qt for your project target.