#include "qt4app.h" #include #include #include #include qt4app::qt4app() { QLabel* l = new QLabel( this ); l->setText( "Hello World!" ); setCentralWidget( l ); QAction* a = new QAction(this); a->setText( "Quit" ); connect(a, SIGNAL(triggered()), SLOT(close()) ); menuBar()->addMenu( "File" )->addAction( a ); } qt4app::~qt4app() {} #include "moc_qt4app.cpp"