Qt 5.1.1与Visual Studio 2012 - 这些QT版本是无法访问 [英] Qt 5.1.1 with Visual Studio 2012 - These QT version are inaccessible
问题描述
我在打开visual studio时遇到此错误。
I get this error when opening visual studio.
我安装了 http://qt-project.org/downloads :
Qt 5.1.1适用于Windows 64位(VS 2012,525 MB) (信息)
Qt 5.1.1 for Windows 64-bit (VS 2012, 525 MB) (Info)
和
Visual Studio Add-in 1.2.2 for Qt5
Visual Studio Add-in 1.2.2 for Qt5
我的Qt dir路径是:
My Qt dir Path is:
C:\Qt\Qt5.1.1\5.1.1
C:\Qt\Qt5.1.1\5.1.1
推荐答案
我有同样的问题在VS 2010与Qt 5.5。
I was having the same problem in VS 2010 with Qt 5.5. I did the followings and it is fixed.
- 在Visual Studio中,转到
Qt5 code>>
Qt Options
- 点击
添加
-
版本名称:
键入您的版本 - code>选择你的Qt目录下的文件夹名为msvcxxxx的路径(其中xxxx是你的VS版本,在你的情况下,它必须是像
C:\Qt\Qt5.1.1\\ \\ 5.1.1 \msvc2012
) - 如果启用了确定按钮,路径正确,请单击它。
- In Visual Studio, go to
Qt5
>Qt Options
- Click
Add
- In
Version Name:
type your version - In
Path:
select the path of the folder named msvcxxxx in your Qt directory(where xxxx is your VS version, in your case it must be something likeC:\Qt\Qt5.1.1\5.1.1\msvc2012
) - If OK button is enabled than the path is correct, click it.
或者,您可以在qt目录中搜索 qmake.exe
。它必须在名为 bin
的文件夹中。从上一级,将该文件夹的路径复制到路径:
文本框。
Alternatively, you can search your qt directory for qmake.exe
. It must be in a folder named bin
. Go up one level from it and copy that folder's path to the Path:
textbox.
这篇关于Qt 5.1.1与Visual Studio 2012 - 这些QT版本是无法访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!