I have installed Qt on Windows according to the instructions, but when I have created a Qt Widget application I am getting the following error:
Running Windows Runtime device detection.
No winrtrunner.exe found.
Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?
Also, in my Qt Creator project directory I cannot see anything apart from my .pro file.
I have tried with this answer, but could not get any result.
In my Qt installation folder, when I open the Tools folder, it just has QtCreator folder and no compiler folder.
How to fix this error?
In my case, before running ANY qmake commands, I had to run %QT_DIR%\bin\qtenv2.bat manually, which needs to be modified to call the vcvarsall.bat. 
With VS 2017 community, add this line to qtenv2.bat
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
Replace x64 with whatever architecture you have.
To verify your VS-Qt toolchain is correctly installed:
Options > Kits, ensure that you have expected Qt versions, compilers, and debuggers under the designated tabs. Those names are suffixed with VS versions and architectures. So after lots of struggle and research I am finally able to install Qt and run the program using Qt Creator in Windows.
Debugging Tool For Windows. The reason for uninstalling previously was that if we install again with the new option also selected, it will not override the previous installation.Tools > Options > Build & Run > Debuggers and you can see that the debugger should be auto-detected.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With