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

AUTOUIC



  • Hello,

    i have a simple application that has the following structure:

    test/CMakeLists.txt
    test/include/debug.h
    test/src/main.cpp
    test/ui/debug.ui

    Qt 5.13.2, Visual Studio 2017 15.9.12, CMake 3.16.0-rc3

    How do i write the QT5_WRAP_UI() to account for the directory structure? This is the current error I get from CMake:

    3>
    3>AutoUic error
    3>-------------
    3>"SRC:/test/include/debug.h"
    3>includes the uic file "ui_debug.h",
    3>but the user interface file "debug.ui"
    3>could not be found in the following directories
    3>  "SRC:/test/include"
    3>
    

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    A quick search turned up CMAKE_AUTOUIC_SEARCH_PATHS.

    Hope it helps



  • oh wow! i missed that. thank you!


Log in to reply