Advertisement
tomasaccini

Untitled

Jul 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <QApplication>
  2. #include <QMainWindow>
  3. #include <QPushButton>
  4.  
  5. int main(int argc, char* argv[]) {
  6.     QApplication app(argc, argv);
  7.     QPushButton button("Cerrar");
  8.  
  9.     QObject::connect(&button, SIGNAL(clicked()), &app, SLOT(quit()));
  10.     button.show();
  11.     return app.exec();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement