Qt VS Tools uic问题

我尝试使用Visual Studio 2017的{​​{1}}版本15.9.17构建测试项目。它因uic错误而失败。我在Windows 10上使用Qt VS Tools

错误描述:

Qt 5.13.1

构建输出:

Severity    Code    Description Project File    Line    Suppression State
Error   1   uic (C:\Qt\5.13.1\msvc2017\bin\uic.exe) TestAppVSEx ...\TestAppVSEx\testapp.ui  1

截屏:

Qt VS Tools uic问题

使用1>------ Build started: Project: TestAppVSEx,Configuration: Debug Win32 ------ 1>Generate moc_predefs.h 1>Uic'ing testapp.ui... 1>Moc'ing testapp.h... 1> Could not create output file 1>testapp.ui : error 1: uic (C:\Qt\5.13.1\msvc2017\bin\uic.exe) 1>Done building project "TestAppVSEx.vcxproj" -- FAILED. ,测试项目运行良好。我很好奇为什么无法使用安装了Qt Creator扩展名的VS 2017进行构建?这是Qt VS Tools最新版本的Qt VS Tools扩展错误吗?预先感谢。

gwfcdc 回答:Qt VS Tools uic问题

我已将$(IntDir)\uic\%(RelativeDir)添加为输出目录。

截屏:

enter image description here

现在,它可以成功编译。谢谢。

本文链接:https://www.f2er.com/3164141.html

大家都在问