• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright Felix E. Klee, 2003
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt
4 // or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 #include "hello_world_widget.h"
7 #include <qapplication.h>
8 
9 #include <qpushbutton.h>
10 
main(int argc,char ** argv)11 int main(int argc, char **argv) {
12     QApplication a(argc, argv);
13     HelloWorldWidget w;
14     QObject::connect(static_cast<QObject*>(w.OkButton), SIGNAL(clicked()), &w, SLOT(close()));
15     a.setMainWidget(&w);
16     w.show();
17     return a.exec();
18 }
19