2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-03 09:02:11 +00:00
Files
build/example/qt-ui/main.cpp
Vladimir Prus f4abd7bd88 Unbreak qt-ui example: use hello_world_widget.h include, not hpp, since
UIC_H type has .h extension by default. With .hpp the examples worked
only if UIC_H extension was changed to .hpp in user-config.jam.


[SVN r18920]
2003-07-03 05:04:18 +00:00

14 lines
332 B
C++

#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();
}