Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/example/qt-ui/main.cpp @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 522 bytes
Line 
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
11int 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}
Note: See TracBrowser for help on using the repository browser.