Qt 5.1.1与Visual Studio 2012 - 这些QT版本是无法访问 [英] Qt 5.1.1 with Visual Studio 2012 - These QT version are inaccessible

查看:942
本文介绍了Qt 5.1.1与Visual Studio 2012 - 这些QT版本是无法访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在打开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.


  1. 在Visual Studio中,转到 Qt5 code>> Qt Options

  2. 点击添加

  3. 版本名称:键入您的版本

  4. code>选择你的Qt目录下的文件夹名为msvcxxxx的路径(其中xxxx是你的VS版本,在你的情况下,它必须是像 C:\Qt\Qt5.1.1\\ \\ 5.1.1 \msvc2012

  5. 如果启用了确定按钮,路径正确,请单击它。

  1. In Visual Studio, go to Qt5 > Qt Options
  2. Click Add
  3. In Version Name: type your version
  4. 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 like C:\Qt\Qt5.1.1\5.1.1\msvc2012)
  5. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆