• 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 "ui_hello_world_widget.h"
7 #include <qapplication.h>
8 #include <qwidget.h>
9 
10 #include <qpushbutton.h>
11 
main(int argc,char ** argv)12 int main(int argc, char **argv) {
13     QApplication a(argc, argv);
14 
15     QWidget w;
16     Ui::HelloWorldWidget wm;
17     wm.setupUi(&w);
18 
19     QObject::connect(wm.OkButton, SIGNAL(clicked()), &w, SLOT(close()));
20 
21     w.show();
22     return a.exec();
23 }
24