Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

tools/build/v2/example/qt-ui/main.cpp

#include "hello_world_widget.h"
#include <qapplication.h>

#include <qpushbutton.h>

int main(int argc, char **argv) {
    QApplication a(argc, argv);
    HelloWorldWidget w;
    QObject::connect(static_cast<QObject*>(w.OkButton), SIGNAL(clicked()), &w, SLOT(close()));
    a.setMainWidget(&w);
    w.show();
    return a.exec();
}