Generate .h and .cpp from .ui file

LucasCaixeta picture LucasCaixeta · Dec 22, 2009 · Viewed 23.6k times · Source

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?

Answer

sakisk picture sakisk · Mar 11, 2011

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