Go to tools/options/Build and run, then add qmake and set visual studio compiler, then in Compiler and Qtversions tabs make sure they have correctly filled