Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QApplication>
- #include <QPushButton>
- 003 int main(int argc, char *argv[])
- 004 {
- 005 QApplication app(argc, argv);
- 006 QPushButton *button = new QPushButton("Quit");
- 007 QObject::connect(button, SIGNAL(clicked()),
- 008 &app, SLOT(quit()));
- 009 button->show();
- 010 return app.exec();
- 011 }
- Qt?s widgets emit signals to i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement