Qt查找/添加槽错误The class containing “Ui::widget” could not be found in

Qt复制过来的UI文件,修改类名后出现错误。

The class containing “Ui::widget” could not be found in

Please verify the #include-directives.

Qt查找/添加槽错误The class containing "Ui::widget" could not be found in

解决办法:

文本编辑器打开ui文件,修改这两处的类名跟.h和.cpp中一致。

Qt查找/添加槽错误The class containing "Ui::widget" could not be found in

原创文章,作者:365开发网,如若转载,请注明出处:https://www.365codes.com/541.html