Custom widget in my project and now project build fails
-
Hi friends,
I have a very simple Desktop app made with Qt Creator; I added a new custom widget to the project, using Add New... Qt Widgets Designer Form Class options. I see the new .ui file and saw the generated .h file in project and all looked good.I tried to use the new widget (which derives from QWidget) by promoting a QWidget to the new class on my mainwindow.ui form, and that seemed to work too but now when I build the project, I get "no such file or directory" error referring to the .h file generated from the custom .ui file.
Thing is, I can see the .h file, and I haven't hardcoded any references or "#includes"... I can't see why the build is failing. I even see the .ui, .h and .cpp files for the custom widget in the CMakeLists.txt file.
-
(Also I did try this in a qmake project and it was successful so the issue I am facing may be peculiar to CMake-based projects.)
-
Hi,
Is the auto uic cmake option enable ?