用MSVC2013配置QT5.4?

Configure QT5.4 with MSVC2013?

我安装了 Qt 5.4 (32bit, VS 2013, OpenGL) 和 VisualStudio-2013,配置 PATH 变量如下:

PATH = ...;C:\Qt\Qt5.4.0.4\msvc2013_opengl\bin

当我尝试编译一个项目时,控制台显示了这个问题:

MAKEFILE_GENERATOR variable not set as a result of parsing : example.pro. Possibly qmake was not able to find files included using "include(..)" - enable qmake debugging to investigate more.

我认为有必要在 "system vars" 中配置此路径:C:\Qt\Qt5.4.0.4\msvc2013_opengl\includeC:\Qt\Qt5.4.0.4\msvc2013_opengl\include,但我不知道该怎么做。

如何使用 VisualStudio2013 设置 QT5.4?

不要把你的生活搞得太复杂,直接用官方的Visual Add-in,一切都应该在一秒钟之内运行。