How to set up the compiler and debugger in QtCreator How to set up the compiler and debugger in QtCreator windows windows

How to set up the compiler and debugger in QtCreator


In general, you seem to lack the compiler and proper "kit" installation. Try to install msvc or mingw with the corresponding Qt installer, and then double check the kit settings.

If the auto-detection does not work out afterwards, you can always add a kit explicitly:

Select Tools > Options > Build & Run > Kits > Add.

You can find a screenshot below from my machine where you should look for that. Note that the screenshot was taken on my Linux box, but the place for the configuration should be unified on the UI.

enter image description here

See the documentation for further details:

Adding Kits


You need to install a compiler, you gave no operating system details I will assume you are a windows user.

http://www.wikihow.com/Install-Qt-SDK-on-Microsoft-Windows

So far you only have the IDE, you need the compiler, you can install several different ones.


I assuming that you have configured IDE in such way that standard UI applications are debugge without problems.I overcome this problem this way:

  1. I redirect standard input to a file by adding application argument: <"FileName.txt" or <"../projectName/FileName.txt" if I'm using build in other place.

  2. then I'm changing setting "run in console" in project run settings, I think I'm disabling this option (currently I'm not sure, try both settings).

This is works perfectly on any OS (tried on Linux and Windows), when you have static set of input data. In other cases this can be problematic.