Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <QApplication>
  2. #include <QPushButton>
  3. 003 int main(int argc, char *argv[])
  4. 004 {
  5. 005 QApplication app(argc, argv);
  6. 006 QPushButton *button = new QPushButton("Quit");
  7. 007 QObject::connect(button, SIGNAL(clicked()),
  8. 008 &app, SLOT(quit()));
  9. 009 button->show();
  10. 010 return app.exec();
  11. 011 }
  12. Qt?s widgets emit signals to i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement