#include #include int main(int argc, char** argv) { QApplication app(argc, argv); QPushButton *button = new QPushButton("Hello!"); QObject::connect(button, SIGNAL(clicked()), &app, SLOT(quit())); button->show(); return app.exec(); }