I want to compile this application in a command prompt (Windows):
include "QtGui/QApplication" include "QtGui/QMainWindow" class Form1 : public QMainWindow { Q_OBJECT public: Form1(QWidget *parent = 0, Qt::WFlags flags = 0); ~Form1(); }; Form1::Form1(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags) { } Form1::~Form1() { } int main(int argc, char * argv[]) { QApplication a(argc, argv); Form1 * frm = new Form1(); frm->setWindowTitle("Hello Word !!!"); frm->show(); return a.exec(); } What should I do?
mocwill use this header file to generate a new file moc_form1.cpp with additional metadata about the class.