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

Qt VS Tools and uic



  • I have some ui files in my project in subdir "ui".

    The options for Qt VS Tools say uic should place the output files into: .\Generated Files

    If however I go into the VS project settings, and go to the QT User Interface Compiler section, I see:

    45d89a8d-d20c-4a4a-a707-b7f7dab224c4-image.png

    Which is placing the output files (for an x64 Debug build) in the:

    x64\Debug\uic\ui

    sub-directory of the project - which rather seems to conflict with the Qt VS Tools value.

    This of course means that the generated header files are not found as the C++ include path contains only .\GeneratedFiles$(ConfigurationName);.\GeneratedFiles;

    Similar comments apply to the Project settings for moc and rcc.

    It's not clear to me if I did something wrong or whether Qt VS Tools didn't set the project up properly.

    Either way, please could you advise me what I need to change so the output files are created in the "advertised" locations (i.e. under "Generated Files")? I can make fairly educated guesses but would prefer to have the "correct" answer.

    Thanks
    David


Log in to reply