qt - Visual Studio 2017 QT : No default QT version found

标签 qt visual-studio-2017 qt-vs-addin

使用 Windows 7,
安装了 VS 2017 社区,
安装 QT Visual Studio 工具,
下载QT:“qt-opensource-windows-x86-winrt-msvc2015-5.8.0”
并添加了 winrt_x86_msvc2015 和 winrt_x64_msvc2015 的路径。

当我启动一个新项目“QT GUI 应用程序”并单击 *.ui 文件时,会出现错误消息“找不到默认的 QT 版本。请检查您的 Qt VS 工具设置。”出现。

我做错了什么?
QT 下载是正确的吗?如果没有,你可以链接正确的吗?
哪个版本实际上是正确的? x86 还是 x64?
我是否必须更改 Qt 默认设置中的某些内容?

最佳答案

在 VS2017 中,我必须在顶部菜单中选择:

Qt VS Tools > Qt Options

条目列表可能为空。
Click "Add"
Give it a name
Give it a path

IE。
 Name:  Qt5.8
 Path:  C:\Qt\5.8\msvc2015_64

现在,您可以右键单击解决方案
    Choose > "Change Qt Version" at the bottom of the right-click dialogue
    Select your new entry "Qt5.8"

关于qt - Visual Studio 2017 QT : No default QT version found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47737977/

相关文章:

c++ - Qt creator C++,设置Statuslabel的文本

c++ - 切换 QDeclarativeView 的源

visual-studio-2017 - C# WinForms 安装项目报错 - Microsoft (R) Visual Studio registry capture utility has stopped working

visual-studio - 在MSVC中找不到QTDIR错误构建项目

visual-studio-2010 - Qt+VS2010 : moc: Too many input files specified

c++ - iOS:将 Qt 添加到现有的 Xcode 项目

qt - 如何控制QML中HTTP资源的缓存?

msbuild - 自 Visual Studio 2017 版本 15.8 以来不断构建失败(Roslyn/CodeAnalysis)。有任何想法吗?

c# - VS2017 仅在 MVC Web API Controller 中忽略断点