Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QApplication>
- #include <QMainWindow>
- #include <QPushButton>
- int main(int argc, char* argv[]) {
- QApplication app(argc, argv);
- QPushButton button("Cerrar");
- QObject::connect(&button, SIGNAL(clicked()), &app, SLOT(quit()));
- button.show();
- return app.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement