Qt6.2 Widgets Application 解决 'ui_xxxx.h' file not found 问题

参考

  1. 【Qt】Qt登录对话框(设计器实现)
  2. error: ‘ui_mainwindow.h‘ file not found(ui头文件未创建)

环境

环境 版本
windows 10
QT 6.2.4
Qt Creator 8.0.1 (Community)
qmake

总结

  1. 编辑UI文件或者创建文件后及时 ctrl+s
  2. 如果运行失败或者提示 file not found,及时清除构建

步骤

  1. 顶部菜单栏->构建->清除
  2. 顶部菜单栏->构建->重新构建
    image
posted @ 2022-08-14 11:19  夏秋初  阅读(1883)  评论(0编辑  收藏  举报