Kits are the key to your problem. A set in Qt consists of:
- Qt version (and I'm not talking about the creator of Qt)
- Compiler (you need to choose the correct compiler that matches your Qt version, I will explain this in more detail below)
- Debugger (correct version 32 or 64 bit).
You can install as many versions of Qt as you want, Qt Creator will usually automatically detect them all. Do not worry, this will not damage your path, you can also install 2 different compilers (for example, the MingW compiler and MSVC aka VS).
in the Qt site: https://www.qt.io/download-open-source/
select the version or versions of Qt that you want to install and install (the package includes Qt Creator, so you do not need to install it twice)

you will also download the correct version of your compilers and debbuggers (if you donโt already have them) and install them.
After you have downloaded all the components and installed them, go to Qt Creator:

you can go and check the versions of Qt, the compiler and the debugger to make sure everything has been detected automatically.
if this is normal, you can create your own kit:
- go to the sets tab.
- you can add a new set, but I prefer to clone an existing one and then edit it.
- select the clone and select the correct compiler, the correct version of Qt and the correct debugger, rename your kit so that you can recognize it. Save and close.
To use the kit you created, you need to select it in the project menu, see the screenshot below:

you can create as many sets as you want, so you can have different configurations.
basslo
source share