Add 32-bit versions of Qt 5.7 on a 64-bit machine

user6167676 picture user6167676 · Sep 20, 2016 · Viewed 10.8k times · Source

Want to manually install 32-bit versions of Qt 5.7 so that I will be able to deploy my app to not only 32-bit but 64-bit machines as well.

Initially when I installed it on my 64-bit Windows 7 machine, I only selected the 64-bit components and, hence, I can only select the MSVC2015_64 bit kits in Qt Creator to build my app with.

Since I want to deploy my app to a 32-bit Windows 10 machine, I am trying to add the 32-bit Qt versions to my installation; tried through Tools > Options > Build & Run > Add... with no success. Searched for some answer/guide to the documentation and to other online sources but could not find how to achieve this in Windows.

Is it possible to manually add other Qt versions on a current install or is do I have to reinstall Qt? Also, could I simple install Qt with the desired Qt versions on a different directory than the first installation or will that mess up the PATH variables?

Answer

Tryum picture Tryum · Sep 20, 2016

You have to launch Qt Maintenance Tool : Start -> Programs -> Qt -> Qt Maintenance Tool.

Skip the Qt login (unless you are using a commercial version of Qt).

Select "Add or remove components" and click yes. You'll be able to select other kits to download and install*.

Then Qt Creator should automatically add those kits, you'll just have to add them to your project : go to project settings once your project is open, and you'll find "Add kit" button in the upper left corner.

*Qt Maintenance Tool may prompt you to update components first if there's a new version available.