I want to compile this application in 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();
}
Can anyone help me? What should I do?