Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how can I create a "ui_" file manually?
I developed a Mac qt project,in my project,there is a ui file named 'canon.ui',after I build it, I get a 'ui_ canon.h' file in my project directory,I change some element in the 'canon.ui' file, but the 'ui_ canon.h' file does not change at all, so I delete the 'ui_ canon.h' in my project directory for get newst 'ui_ canon.h' file,but when I run the project again,it show me error:can't find the 'ui_ canon.h' file,I have try some methods:
1.'Run qmake' in my project,but it not work;
now, I want add the 'ui_ canon.h' file to my project to fix the error,what should I do?
thanks a lot!
ODБOï last edited by
Hi @Princein ,
try this :
close the project,
delete build folder
delete project.pro.user re-open .pro with qt creator
now, I want add the 'ui_ canon.h' file to my project to fix the error,
No, don't do that. Generated files don't belong to the project nor under version control.
In addition to @LeLev's suggestions: Do you use shadow building?
thanks for your help!
yes!thanks for your reply!