Generate .h and .cpp from .ui file
问题 Suppose I have the file about.ui . How can I make the "about.h" and the "about.cpp" from my .ui file? I have to create a .moc file too? How can I compile this after the creaton to see if all ocurred correctly? 回答1: If automatic generation does not work (like in my case) you can use uic to generate the header file manually. uic file.ui > file.h 回答2: You don't. The about.ui generates a ui_about.h which you include in your own about.h You then create you own class deriving from this class class