Skip to content

Instantly share code, notes, and snippets.

@yuzebin
Created August 14, 2013 04:24
Show Gist options
  • Save yuzebin/6227993 to your computer and use it in GitHub Desktop.
Save yuzebin/6227993 to your computer and use it in GitHub Desktop.
#include <QtGui/QApplication>
#include <QtGui/QPushButton>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton *button = new QPushButton("Quit");
QObject::connect(button, SIGNAL(clicked()), &a, SLOT(quit()));
button->show();
return a.exec();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment