小编llT*_*Mll的帖子

在 Visual Studio 2019 中使用 Qt 时出错

我正在尝试在 Visual Studio 2019 中使用 Qt。我在 VS 中安装了扩展“Qt VS tools”并添加了我的 Qt 路径。我在 VS 中创建了一个新的 Qt Gui Application 项目。没有改变任何我得到错误

  == Qt Visual Studio Tools version 2.4.2

   Initialized in: 14169,6 msecs
   Main (UI) thread: 292,38 msecs

TestQT.vcxproj: background build FAILED!
TestQT.vcxproj: background build FAILED!
TestQT.vcxproj: background build FAILED!
Run Code Online (Sandbox Code Playgroud)

作为 Qt VS 工具的输出,如果我尝试构建这个项目,我会得到

1>------ Rebuild All started: Project: TestQT, Configuration: Debug x64 ------
1>Reading Qt configuration (C:\Qt\5.14.0\msvc2017_64\bin\qmake.exe)
1>C:\Users\tom\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018: The "GetVarsFromMakefile" task failed unexpectedly.
1>C:\Users\tom\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018: System.ArgumentException: An item with the …
Run Code Online (Sandbox Code Playgroud)

c++ qt visual-studio

4
推荐指数
1
解决办法
3073
查看次数

标签 统计

c++ ×1

qt ×1

visual-studio ×1