@Valveware said in Promoting to custom widget in QtDesigner '*.hpp' no such file or directory [cmake]:
file(GLOB_RECURSE QT_MOC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS include/dashboard/*.hpp)
Ok that looks like it would indeed moc your cameraframe.hpp.. So that's probably not the issue.
Can you share the build log from gcc? And also the ui_main_window.h file as well as ui_cameraframe.h?