Visual Studio needs to know where QT is from an environment variable, PATH. Add the Qt bin directory to path and restart Visual Studio. See if this works. Sometimes a reboot is needed.