Qt中报错error: allocation of incomplete type ‘Ui::‘ 发布于 2018-12-01 每次在Qt中单独添加UI文件的时候,都会遇到这个问题。需要注意这么几点 切记要与类名保持一致 举个栗子我的类名叫 CMainWid …