--- /dev/null
+#include <boost/python.hpp>
+#include <boost/utility.hpp>
+
+namespace py = boost::python;
+
+
+#include "QtGui/QWidget"
+#include "QtGui/QApplication"
+
+
+static char *cstub[] = { "stub" };
+char **stub = cstub;
+int one = 1;
+
+struct QApplicationStub : public QApplication {
+ QApplicationStub() : QApplication(one, (char **)stub) {
+ }
+};
+
+void export_qt()
+{
+
+ py::class_<QWidget, boost::noncopyable>("QWidget", py::init<QWidget *, Qt::WindowFlags>())
+ ;
+
+ py::class_<QApplicationStub, boost::noncopyable>(
+ "QApplication",
+ py::init<>()
+ )
+ .def("execloop", &QApplication::exec)
+ .staticmethod("execloop")
+ ;
+}