Qt 5 migration - Cannot open include file: 'ui_mainwindow.h'

前端 未结 4 1632
灰色年华
灰色年华 2021-01-18 22:53

I\'m trying to migrate a simple project to Qt 5. The project was originally written for Qt 4, and it compiles fine there.

When compiling with Qt 5, however, I\'m get

4条回答
  •  佛祖请我去吃肉
    2021-01-18 23:35

    What worked for me in the end was deleting both the Debug and Release build folders. What is strange is that I hadn't copied them initially, so I have no idea why it helped deleting them after they were first created.

    But if anyone has this problem, try deleting the Debug and Release folders, as well as the .user file. This should force Qt Creator to reconfigure your project.

提交回复
热议问题