Qt Creator编译时提示找不到“ui_xxx.h”文件时间:2023-03-08 23:18:41 解决方案: 在对应工程的*.pro文件里加上: QT+= widgets 则在编译过程中对应的“xxx.ui”文件会自动生成“ui_xxx.h”文件。