Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt VS Tools uic issue



  • Hello!

    I have tried to build my test project using Visual Studio 2017 version 15.9.17 with Qt VS Tools. It fails with uic error. I use Qt 5.13.1 on Windows 10.

    Error description:

    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
    

    Screenshot:

    2019-10-31_013530.png

    The test project works well using Qt Creator. I am curious why it fails to build using VS 2017 with Qt VS Tools extension installed? It is the Qt VS Tools extension bug with the latest VS 2017 version? Thanks in advance.



  • aefd203f-7673-46b5-b79c-659dc5b2fe98-kuva.png

    I am not familiar with these setting, but is this Output Directory supposed to be inherited by the *.ui files?

    2ed88cde-d684-4261-95a7-fffa5ae35fc1-kuva.png

    Because if I manually set this path to a *.ui file, I can successfully build the software.

    Hope this helps to squash the bug.



  • @Kimmo

    Hello!

    I have added $(IntDir)\uic\%(RelativeDir) as the Output Directory and now it compiles successfully. Thank you.


Log in to reply